Загрузка страницы

APPLE CODING INTERVIEW QUESTION - SPLIT A STRING IN BALANCED STRINGS

SOCIAL
----------------------------------------------------------------------------------------------------------------
Instagram: https://instagram.com/kevinnaughtonjr/
Twitter: https://twitter.com/KevinNaughtonJr
Patreon: https://www.patreon.com/KevinNaughtonJr
GitHub: https://github.com/kdn251

This is one of Apple's most commonly asked interview questions according to LeetCode (2020)! Apple coding interview question split a string in balanced strings, coding solution. If you give me 5 minutes you'll thank me if this appears during your Apple interview! Coding Interviews split a string in balanced strings (LeetCode) question and explanation.

DISCORD CHANNEL
----------------------------------------------------------------------------------------------------------------
To join the Discord channel use the following link and join the "Member" tier: https://www.patreon.com/KevinNaughtonJr In this Discord channel, you will be able to...
1. Ask me questions directly (as well as other members)
2. Ask about and discuss previous interview experiences
3. Find mock interview partners
4. Share helpful videos for interview preparation, and more!

This question is commonly asked by the following companies: Apple

Link to problem: https://leetcode.com/problems/split-a-string-in-balanced-strings/

Intuition behind solution: use a count to determine whether or not the given substring is balanced. Increment your count when you see 'L' and decrement your count when you see 'R'. If your count is every 0, increment the number of balanced strings you've found.

MUSIC
----------------------------------------------------------------------------------------------------------------
lofi rap by Moon Waves
https://soundcloud.com/the-talking-room/lofi-rap

#techinterviews #leetcode #appleinterview

Видео APPLE CODING INTERVIEW QUESTION - SPLIT A STRING IN BALANCED STRINGS канала Kevin Naughton Jr.
Показать
Комментарии отсутствуют
Введите заголовок:

Введите адрес ссылки:

Введите адрес видео с YouTube:

Зарегистрируйтесь или войдите с
Информация о видео
25 февраля 2020 г. 7:00:04
00:07:05
Яндекс.Метрика