Implement Stack using Queues (LeetCode 225) | Using single and 2 queues | Visuals and animations

  Рет қаралды 6,566

Nikhil Lohia

Nikhil Lohia

Күн бұрын

Пікірлер: 24
@aravinds6406
@aravinds6406 7 ай бұрын
I wonder why your videos are not getting good views. Your way of explanation is awesome. Keep uploading more videos.
@nikoo28
@nikoo28 7 ай бұрын
I will try my best
@engineermind1651
@engineermind1651 2 ай бұрын
your way to explain theoritical is good but explain the code you more improve please.
@anveri867
@anveri867 Ай бұрын
When using a single queue we can make either push or pop efficient it doesn't have to be push only , so isn't it better we use a single queue or over 2 queues ?
@democreation3594
@democreation3594 Ай бұрын
Your way of explaining and presentation is great bro. you deserve more views but small suggestion after you explain the code if you code along in leetcode it will be more easier for us to understand rather than seeing the final code so it might increase the views.
@nikoo28
@nikoo28 Ай бұрын
i do not plan on coding along in leetcode, there are a lot of youtubers who do the exact same thing. languages keep changing with time, so I would focus primarily on problem solving. You have so many chat GPTs available too which can write the code for you.
@ignisharajathi334
@ignisharajathi334 12 күн бұрын
Excellent explanation.Guddos
@D.e.e.p.a.k_s.o.n.i_19
@D.e.e.p.a.k_s.o.n.i_19 Күн бұрын
sir u r too good never give up ur awesome
@jenniferfan8155
@jenniferfan8155 6 ай бұрын
Very detailed explanation. Thank you
@sahelisohanitwins7492
@sahelisohanitwins7492 6 ай бұрын
Nice explanation sir ❤
@jagdishkhetre4515
@jagdishkhetre4515 2 ай бұрын
Excellent explanation ... Thank you so much
@akashbestcode
@akashbestcode 3 ай бұрын
amazing dude, I'm gonna subscribe you
@rudreshcm4172
@rudreshcm4172 6 ай бұрын
Hey nickil which software tool you use for visualizations and any drawing pad?
@nikoo28
@nikoo28 6 ай бұрын
That is GoodNotes 6
@PiyushYadav-pl9jm
@PiyushYadav-pl9jm 3 ай бұрын
Best explanation ever!
@karthik-varma-1579
@karthik-varma-1579 7 ай бұрын
Sir Please Organise the playlist or videos with video no sir if I want to learn arrays in Java then I could find the video of main understand sir
@nikoo28
@nikoo28 6 ай бұрын
have you checked the playlists on my channel?
@limitless6189
@limitless6189 4 ай бұрын
great explaination
@sahilbait2981
@sahilbait2981 2 ай бұрын
Best !!!
@prakhargarg4166
@prakhargarg4166 7 ай бұрын
Best video
@akhil7618
@akhil7618 5 ай бұрын
Sir, I wanted to see the code for stack using 2 queues😢
@nikoo28
@nikoo28 5 ай бұрын
Did you check the code provided in the video description?
@akhileshnandanwar7443
@akhileshnandanwar7443 5 ай бұрын
sir there is no code of stack using 2 queues
@nikoo28
@nikoo28 2 ай бұрын
class StackImplUsingQueues { Queue q1 = new LinkedList(); Queue q2 = new LinkedList(); public int pop() { if (q1.peek() == null) { System.out.println("The stack is empty, nothing to return"); int i = 0; return i; } else { int pop = q1.remove(); return pop; } } public void push(int data) { if (q1.peek() == null) { q1.add(data); } else { for (int i = q1.size(); i > 0; i--) { q2.add(q1.remove()); } q1.add(data); for (int j = q2.size(); j > 0; j--) { q1.add(q2.remove()); } } }
How to Solve ANY LeetCode Problem (Step-by-Step)
12:37
Codebagel
Рет қаралды 236 М.
إخفاء الطعام سرًا تحت الطاولة للتناول لاحقًا 😏🍽️
00:28
حرف إبداعية للمنزل في 5 دقائق
Рет қаралды 28 МЛН
How To Get Married:   #short
00:22
Jin and Hattie
Рет қаралды 23 МЛН
отомстил?
00:56
История одного вокалиста
Рет қаралды 7 МЛН
Stack Implementation using a Single Queue
11:17
take U forward
Рет қаралды 184 М.
LeetCode was HARD until I Learned these 15 Patterns
13:00
Ashish Pratap Singh
Рет қаралды 380 М.
The Midpoint Circle Algorithm Explained Step by Step
13:33
NoBS Code
Рет қаралды 61 М.
Implement Queue using Stacks - Leetcode 232 - Python
15:23
NeetCodeIO
Рет қаралды 26 М.
Being Competent With Coding Is More Fun
11:13
TheVimeagen
Рет қаралды 84 М.
Implement Stack using Queues - Leetcode 225 - Python
7:29
NeetCode
Рет қаралды 66 М.
LeetCode: The Worst Thing to Happen to Software Engineering
8:03
Coding with Dee
Рет қаралды 129 М.
إخفاء الطعام سرًا تحت الطاولة للتناول لاحقًا 😏🍽️
00:28
حرف إبداعية للمنزل في 5 دقائق
Рет қаралды 28 МЛН