No video

Implement Queue using Stacks (LeetCode 232) | Side by side demo and diagrams

  Рет қаралды 3,053

Nikhil Lohia

Nikhil Lohia

Күн бұрын

Join this channel to get access to perks: / @nikoo28
Actual Problem: leetcode.com/problems/impleme...
Chapters:
00:00 - Intro
00:52 - Problem Statement and Description
02:52 - Side by side demo
10:21 - Dry-run of Code
13:57 - Final Thoughts
📚 Links to topics I talk about in the video:
Queue Data Structure: • Queue Data Structure e...
Stack Data Structure: • Stack Data Structure e...
Implement Stack Using Linked Lists: • How to Implement a Sta...
📘 A text based explanation is available at: studyalgorithms.com
Code 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

Пікірлер: 15
@manojtate9604
@manojtate9604 2 ай бұрын
Whenever I see your video related to DSA, I am satisfied with the concept.
@srushtikale7455
@srushtikale7455 3 күн бұрын
All your explanations are just best
@sdkaraarslan
@sdkaraarslan 5 ай бұрын
nice explanation with visuals and clear understanding, love this.
@user-um3vb7eu4k
@user-um3vb7eu4k 5 ай бұрын
Great explanation sir ❤👍
@GAGGZz
@GAGGZz 5 ай бұрын
please make a playlist on Stack, queue, HashTables tries etc. as your teaching is awesome please continue your ds playlist
@nikoo28
@nikoo28 4 ай бұрын
there are problems available on stacks and queues, just not in a playlist...will do that eventually :)
@adityajain3451
@adityajain3451 Ай бұрын
@@nikoo28 sir please make a playlist so helpful
@ousmanbah10
@ousmanbah10 2 ай бұрын
He is the best
@limitless6189
@limitless6189 2 ай бұрын
wonderfull broo
@huyuzhong9849
@huyuzhong9849 5 ай бұрын
very interesting.
@sonuanand167
@sonuanand167 4 ай бұрын
nice explanation..... please make playlist for linked-list.. lot's of people are struggling in linked-list.. Thanks!
@nikoo28
@nikoo28 4 ай бұрын
did you already check this out: kzfaq.info/sun/PLFdAYMIVJQHN6J5-OCh7pbG0o8WHC9so3
@Blackswordsman28476
@Blackswordsman28476 5 ай бұрын
You have playlists on all other data structures Can you make a playlist on stacks & queues too?
@nikoo28
@nikoo28 4 ай бұрын
i will try to find more problems that are explicitly on stacks and queues.
@sumitraj6878
@sumitraj6878 Ай бұрын
class MyQueue { private Stack input; private Stack output; public MyQueue() { this.input = new Stack(); this.output = new Stack(); } public void push(int x) { input.push(x); } public int pop() { if (!output.isEmpty()) return output.pop(); while(!input.isEmpty()){ output.push(input.pop()); } return output.pop(); } public int peek() { if (output.isEmpty()) while (!input.isEmpty()) output.push(input.pop()); return output.peek(); } public boolean empty() { return (input.isEmpty() && output.isEmpty()); } } // thank me later!
LeetCode 271 | Encode and Decode Strings | String | Java
7:59
Sleepy Cracker
Рет қаралды 543
Stay on your way 🛤️✨
00:34
A4
Рет қаралды 28 МЛН
Box jumping challenge, who stepped on the trap? #FunnyFamily #PartyGames
00:31
Family Games Media
Рет қаралды 25 МЛН
这是王子儿子吗
00:27
落魄的王子
Рет қаралды 20 МЛН
24. OAuth 2.0: Explained with API Request and Response Sample | High Level System Design
35:24
Concept && Coding - by Shrayansh
Рет қаралды 27 М.
Max Consecutive Ones (LeetCode 1004) | Full Solution w/ animations
14:41
16. System Design - Distributed Messaging Queue | Design Messaging Queue like Kafka, RabbitMQ
45:13
Stay on your way 🛤️✨
00:34
A4
Рет қаралды 28 МЛН