Validate Stack Sequences - Leetcode 946 - Python

  Рет қаралды 9,134

NeetCodeIO

NeetCodeIO

Күн бұрын

Пікірлер: 21
@laumatthew71
@laumatthew71 Жыл бұрын
I think the i < len(popped) condition can be omitted ? Because the number of elements we pop is always smaller or equal to the number of elements we push
@tobiichiorigamisan
@tobiichiorigamisan Жыл бұрын
You're right. Even I solved it without that constraint.
@leeroymlg4692
@leeroymlg4692 Жыл бұрын
even if there is more popped than pushed, that means we will come across numbers that don't exist in pushed and it will exit out of the while loop anyway
@davidarm86
@davidarm86 Жыл бұрын
those daily leetcode solutions are priceless ! Thank you for the wonderful content
@zhethan9908
@zhethan9908 Жыл бұрын
we making it out of unemployment with this one 🔥🔥🔥
@yoni905
@yoni905 Жыл бұрын
Are you doing these every day?? Dude you are amazing. Really an inspiration.
@shubhammishra1225
@shubhammishra1225 Жыл бұрын
I dont think so "i" will be ever greater than len(popped) . Nice sol thanks.
@sauravchandra10
@sauravchandra10 Жыл бұрын
10 seconds in the video and I have already figured out the solution. Dont know how it is possible, maybe it is the calmness with which you approach the problems.
@vixguy
@vixguy Жыл бұрын
wow I wrote the exact code as you!!
@MP-ny3ep
@MP-ny3ep Жыл бұрын
Awesome explanation. Thank you !
@krateskim4169
@krateskim4169 Жыл бұрын
Thank you so much
@mirshodoripov1035
@mirshodoripov1035 Жыл бұрын
you are genius
@roywastaken
@roywastaken Жыл бұрын
maestro
@puneetkumarsingh1484
@puneetkumarsingh1484 Жыл бұрын
Can you make a video on solving the variant of this problem with duplicate numbers as well which you highlighted at 3:18? It would be greatly appreciated.
@phoenixninja8872
@phoenixninja8872 Жыл бұрын
there's 69 likes on the video... I wanna like it cuz it was a great vid but then it wouldn't have 69 likes anymore. Sticky dilemma :(
@yashjoon3889
@yashjoon3889 Жыл бұрын
Also the acceptance rate for this problem on lc was exact 69% so I didn't wanted to solve the problem in one go :
@julianelmasry9556
@julianelmasry9556 Жыл бұрын
first view
@manishcoding5383
@manishcoding5383 Жыл бұрын
@typicalIsraeli
@typicalIsraeli Жыл бұрын
It's apparent that lately, you began increasing the video speed (1.25 out-of-box). Both talking & drawing speed don't feel natural. Please let others decide whether they want it to be 1.25 faster or not.
Make The String Great - Leetcode 1544 - Python
10:53
NeetCodeIO
Рет қаралды 8 М.
Extra Characters in a String - Leetcode 2707 - Python
21:11
NeetCodeIO
Рет қаралды 18 М.
If people acted like cats 🙀😹 LeoNata family #shorts
00:22
LeoNata Family
Рет қаралды 30 МЛН
I thought one thing and the truth is something else 😂
00:34
عائلة ابو رعد Abo Raad family
Рет қаралды 12 МЛН
Муж внезапно вернулся домой @Oscar_elteacher
00:43
История одного вокалиста
Рет қаралды 7 МЛН
УДИВИЛ ВСЕХ СВОИМ УХОДОМ!😳 #shorts
00:49
Skema for Data Center Design with HED's Amanda Gioia
53:33
Google Coding Interview Question - Validate Stack Sequences (LeetCode)
9:11
Validate Stack Sequences | Live Coding with Explanation | Leetcode - 946
6:34
Capacity to Ship Packages - Leetcode 1011 - Python
12:25
NeetCodeIO
Рет қаралды 22 М.
2 Years of C++ Programming
8:20
Zyger
Рет қаралды 7 М.
LeetCode is a JOKE with This ONE WEIRD TRICK
4:54
AlgoMonster
Рет қаралды 90 М.
I gave 127 interviews. Top 5 Algorithms they asked me.
8:36
Sahil & Sarra
Рет қаралды 675 М.
Minimum Time to Visit a Cell In a Grid - Leetcode 2577 - Python
22:55
541 Leetcode problems are NOT enough.
7:12
Sahil & Sarra
Рет қаралды 160 М.
Longest Turbulent Array - Leetcode 978 - Python
13:14
NeetCodeIO
Рет қаралды 13 М.
If people acted like cats 🙀😹 LeoNata family #shorts
00:22
LeoNata Family
Рет қаралды 30 МЛН