Reverse Only Letters (LeetCode 917) | 2 Different Methods | Stack Data Structure and Two Pointers

  Рет қаралды 1,329

Nikhil Lohia

Nikhil Lohia

Күн бұрын

Join this channel to get access to perks: / @nikoo28
Actual problem on LeetCode: leetcode.com/problems/reverse...
Chapters:
00:00 - Intro
00:38 - Problem Statement
03:00 - Using a Stack
06:36 - Two Pointer approach
10:07 - Dry-run of Code
12:02 - Final Thoughts
📚 Links to topics I talk about in the video:
Stack Data Structure: • Stack Data Structure e...
What is Big O?: • Big O Notation Simplif...
Time Complexity of an algorithm: • What is the Time Compl...
Other Easy Problems: • Easy Problems
📘 A text based explanation is available at: studyalgorithms.com
Code on Github: github.com/nikoo28/java-solut...
Test-cases on Github: github.com/nikoo28/java-solut...
📖 Reference Books:
Starting Learn to Code: amzn.to/3sJm8Wl
Favorite book to understand algorithms: amzn.to/4848xJH
Favorite book for data structures: amzn.to/3P96YBv
Get started for interview preparation: amzn.to/44Nn5du
🔗 To see more videos like this, you can show your support on: www.buymeacoffee.com/studyalg...
🎥 My Recording Gear:
Recording Light: amzn.to/3PdsViT
Microphone: amzn.to/3Exv83x
Recording Camera: amzn.to/3PwyN8e
Tablet to sketch and draw: amzn.to/3ZdKVy7
Sketching Tool: amzn.to/45XJEgY
Laptop to edit videos: amzn.to/460ofDu
💻 Get Social 💻
Follow on Facebook at: / studyalgos
Subscribe to RSS feeds: studyalgorithms.com/feed/
Join fan mail: eepurl.com/g9Dadv
#leetcode #programming #interview

Пікірлер: 11
@Aditya-mf2uo
@Aditya-mf2uo 4 ай бұрын
I rarely comment on any videos on youtube but here i just cannot stop myself ,,sir you are uploading great content specially the videos in which you guide on how to solve a particular question .your videos are ver helpfull for me and many others too.Just a little suggestion to make a playlist and add these videos in systematic topic wise ,,like this video can be added to stacks and arrays section.Once again i would like to say you are the best
@nikoo28
@nikoo28 3 ай бұрын
Did you check out the playlists available on my channel?
@yashvarshney8651
@yashvarshney8651 4 ай бұрын
thanks for the videos!
@ClovisNeto
@ClovisNeto 4 ай бұрын
Hey! Just one additional info, if you do the two pointers swap in the same array, you will not need an extra space, so the space complexity will be O(1)
@nikoo28
@nikoo28 4 ай бұрын
The input is given as a string.
@nandhakumarkr3147
@nandhakumarkr3147 4 ай бұрын
Hi Nikhil, it would be great if you explain - count subarrays with fixed bounds problem in leetcode. It is asked in my interview
@nikoo28
@nikoo28 4 ай бұрын
Will add it to my pipeline of upcoming problems. I am planning a different tangent as well..to provide a roadway for learning..stay tuned 😄
@rudreshcm4172
@rudreshcm4172 4 ай бұрын
Hi nikhil, can you come up with one roadmap video for all your uploaded videos. Probably your videos are shuffelled.
@nikhilgawde
@nikhilgawde 4 ай бұрын
It will be really helpful!
@nikoo28
@nikoo28 4 ай бұрын
Have you guys looked at the available playlists on my channel. If they aren’t helpful, let me know…I will work on creating a better roadmap
@rudreshcm4172
@rudreshcm4172 4 ай бұрын
Yeah nikhil, you uploaded videos topic wise too like graph playlist , trees etc. but for leetcode videos , are shuffelled. So may be you can bring one roadmap video specifically for your channel to best utilize
ЧУТЬ НЕ УТОНУЛ #shorts
00:27
Паша Осадчий
Рет қаралды 10 МЛН
ТЫ С ДРУГОМ В ДЕТСТВЕ😂#shorts
01:00
BATEK_OFFICIAL
Рет қаралды 7 МЛН
Идеально повторил? Хотите вторую часть?
00:13
⚡️КАН АНДРЕЙ⚡️
Рет қаралды 13 МЛН
How I would learn Leetcode if I could start over
18:03
NeetCodeIO
Рет қаралды 411 М.
Max Consecutive Ones (LeetCode 1004) | Full Solution w/ animations
14:41
The Unfair Way I Got Good At LeetCode
23:02
Aman Manazir
Рет қаралды 72 М.
ЧУТЬ НЕ УТОНУЛ #shorts
00:27
Паша Осадчий
Рет қаралды 10 МЛН