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

AMAZON - REVERSE VOWELS OF A STRING (LeetCode)

This is one of Amazon's most commonly asked interview questions according to LeetCode (2019)! Reverse Vowels of a String coding solution. If you give me 5 minutes you'll thank me if this appears during your Amazon interview! Coding Interviews Reverse Vowels of a String (LeetCode) question and explanation.

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

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: Amazon

Link to problem: https://leetcode.com/problems/reverse-vowels-of-a-string/

Intuition behind solution: Create a character array to manipulate the string (strings in Java are immutable). Create two pointers i and j to start at the beginning and end of the string respectively. While i and j have not crossed, search for vowel for each pointer and swap them. Once i and j have crossed, return a new string from your modified character array.

MUSIC
----------------------------------------------------------------------------------------------------------------
leanleanwalk? (IG @ heckohvro) by MAJORA✰
https://soundcloud.com/uwumajora/leanleanwalk

#coding #leetcode #softwareengineer

Видео AMAZON - REVERSE VOWELS OF A STRING (LeetCode) канала Kevin Naughton Jr.
Показать
Комментарии отсутствуют
Введите заголовок:

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

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

Зарегистрируйтесь или войдите с
Информация о видео
30 сентября 2019 г. 6:30:02
00:08:29
Яндекс.Метрика