Validate Stack Sequences | Live Coding with Explanation | Leetcode - 946

  Рет қаралды 5,906

Algorithms Made Easy

Algorithms Made Easy

Күн бұрын

This video explains the greedy approach to solve the question using a Stack.
Get Discount on GeeksforGeeks courses (practice.geeks...) by using coupon code: ALGOMAEASY
To support us you can donate
Patreon: / algorithmsmadeeasy
UPI: algorithmsmadeeasy@icici
Paypal: paypal.me/algorithmsmadeeasy
Check out our other popular playlists:
✅✅✅[ Tree Data Structure ] : • Tree Data Structure
✅✅✅[ Graphs Data Structure ] : • Graph Data Structure
✅✅✅[ December Leetcoding Challenge ] : • December Leetcoding Ch...
✅✅✅[ November Leetcoding Challenge ] : • November Leetcoding Ch...
✅✅✅[ August Leetcoding Challenges ] : • August LeetCoding Chal...
✅✅✅[ July Leetcoding Challenges ] : • July LeetCoding Challe...
✅✅✅[ Cracking the Coding Interview - Unique String ] : • Cracking the Coding In...
✅✅✅[ June Leetcoding Challenges ] : • June LeetCoding Challe...
✅✅✅[ May Leetcoding challenges ]: • May LeetCoding Challen...
Problem Link: leetcode.com/p...
Code: github.com/Alg...
If you find any difficulty or have any query then do COMMENT below. PLEASE help our channel by SUBSCRIBING and LIKE our video if you found it helpful.
#coding #leetcode #programminglife #programmingisfun #programmer #tech #software #codinglife #leetcode

Пікірлер: 9
@AlgorithmsMadeEasy
@AlgorithmsMadeEasy 3 жыл бұрын
We hope you all are enjoying our videos!!! Don't forget to leave a comment!!! Please like the video to support us!!! Questions you might like: ✅✅✅[ Tree Data Structure ] : kzbin.info/aero/PLJtzaiEpVo2zx-rCqLMmcFEpZw1UpGWls ✅✅✅[ Graphs Data Structure ] : kzbin.info/aero/PLJtzaiEpVo2xg89cZzZCHqX03a1Vb6w7C ✅✅✅[ January Leetcoding Challenge ] : kzbin.info/aero/PLJtzaiEpVo2wCalBcRcNjXQ0C6ku3dRkn ✅✅✅[ December Leetcoding Challenge ] : kzbin.info/aero/PLJtzaiEpVo2xo8OdPZxrpybGR8FmzZpCA ✅✅✅[ November Leetcoding Challenge ] : kzbin.info/aero/PLJtzaiEpVo2yMYz5RPH6pfB0wNnwWsK7e ✅✅✅[ August Leetcoding Challenge ] : kzbin.info/aero/PLJtzaiEpVo2xu4h0gYQzvOMboclK_pZMe ✅✅✅July Leetcoding challenges: kzbin.info/aero/PLJtzaiEpVo2wrUwkvexbC-vbUqVIy7qC- ✅✅✅June Leetcoding challenges: kzbin.info/aero/PLJtzaiEpVo2xIfpptnCvUtKrUcod2zAKG ✅✅✅May Leetcoding challenges: kzbin.info/aero/PLJtzaiEpVo2wRmUCq96zsUwOVD6p66K9e ✅✅✅Cracking the Coding Interview - Unique String: kzbin.info/aero/PLJtzaiEpVo2xXf4LZb3y_BopOnLC1L4mE Struggling in a question?? Leave in a comment and we will make a video!!!🙂🙂🙂
@csalgorithms232
@csalgorithms232 Жыл бұрын
very clean explanation. thanks
@AlgorithmsMadeEasy
@AlgorithmsMadeEasy Жыл бұрын
Glad it was helpful!
@moezzzz9341
@moezzzz9341 2 жыл бұрын
beautiful solution and so easy to understand. thank you so much!
@AlgorithmsMadeEasy
@AlgorithmsMadeEasy Жыл бұрын
Glad you liked it!
@pubamx
@pubamx 3 жыл бұрын
Good approach. I believe we could have an O(1) space solution using an additional pointer for tracking the pushed array values instead of the extra space of the Stack. The logic won't change too much, tho. I love this channel, thanks for your work guys.
@tanishsharma5440
@tanishsharma5440 2 жыл бұрын
Thanks 🤟
@nikhilsisodia9576
@nikhilsisodia9576 3 жыл бұрын
Solution will be 97% faster solution In the end Replace -> return st.empty() to return j == popped.length
@CRamPrasannaCV
@CRamPrasannaCV 3 жыл бұрын
Understood :-)
Longest Valid Parentheses | Live Coding with Explanation | Leetcode - 32
12:51
Algorithms Made Easy
Рет қаралды 51 М.
Как Я Брата ОБМАНУЛ (смешное видео, прикол, юмор, поржать)
00:59
Smart Sigma Kid #funny #sigma
00:33
CRAZY GREAPA
Рет қаралды 27 МЛН
When Cucumbers Meet PVC Pipe The Results Are Wild! 🤭
00:44
Crafty Buddy
Рет қаралды 61 МЛН
The IMPOSSIBLE Puzzle..
00:55
Stokes Twins
Рет қаралды 192 МЛН
Validate Stack Sequences - Leetcode 946 - Python
6:23
NeetCodeIO
Рет қаралды 9 М.
Easy Google Coding Interview With Ben Awad
28:00
Clément Mihailescu
Рет қаралды 1 МЛН
DHH discusses SQLite (and Stoicism)
54:00
Aaron Francis
Рет қаралды 101 М.
Validate Stack Sequences | Leetcode 946
22:14
Pepcoding
Рет қаралды 10 М.
Maximum Number of Events That Can Be Attended | Leetcode - 1353
15:10
Algorithms Made Easy
Рет қаралды 7 М.
Beginners Should Think Differently When Writing Golang
11:35
Anthony GG
Рет қаралды 124 М.
2 Years of C++ Programming
8:20
Zyger
Рет қаралды 9 М.
Как Я Брата ОБМАНУЛ (смешное видео, прикол, юмор, поржать)
00:59