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

Google Coding Interview (2019) - License Key Formatting (LeetCode)

This is Google's 3rd most commonly asked interview question according to LeetCode (2019)! License Key Formatting coding solution. If you give me 10 minutes you'll thank me if this appears during your interview! Coding Interviews License Key Formatting (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: Google.

Link to problem: https://leetcode.com/problems/license-key-formatting/

Intuition behind solution: Iterate through the string backward creating a string builder. At every iteration if you are at a dash, ignore it...if you have grouped K characters together insert a dash, otherwise add the current character (capitalized) to the string builder. Return the string builder as a string.

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

MUSIC
----------------------------------------------------------------------------------------------------------------
Blushes by Dj Quads
https://soundcloud.com/aka-dj-quads/blushes

#coding #interviews #softwareengineering

Видео Google Coding Interview (2019) - License Key Formatting (LeetCode) канала Kevin Naughton Jr.
Показать
Комментарии отсутствуют
Введите заголовок:

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

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

Зарегистрируйтесь или войдите с
Информация о видео
14 марта 2019 г. 7:11:18
00:09:33
Яндекс.Метрика