Next Greater Element using Stacks: Tutorial with Code | Competitive Programming Course | EP 32

Опубликовано: 12 Октябрь 2024
на канале: Luv
108,447
3.4k

C++ STL TUTORIALS :    • C++ STL | Competitive Programming  
FREE COMPETITIVE PROGRAMMING COURSE TUTORIALS :    • Competitive Programming/DSA Course | ...  
FOR DOUBTS AND DISCUSSIONS, JOIN DISCORD :   / discord  

In this video I a very important question which is done using stacks in O(n) Complexity which is finding Next greater element for every value in a given Array. We discuss the whole logic and also see how we can easily code it as well .

Practice Questions :
https://www.hackerrank.com/contests/s...
https://leetcode.com/problems/next-gr...
https://leetcode.com/problems/next-gr...

Timestamps:
Logic explanation : (0:00)
Code using Stack: (9:36)
Bloopers : (19:38)

Be a part of our awesome Community. Join
○ Discord :   / discord  
○ Telegram : https://t.me/LuvIsMeYT

You can follow me on below platforms for all the latest updates
○ Instagram :   / i._m_.luv  
○ Twitter :   / luvk1412  
○ Linkedin :   / luvk1412  

Blog(Not frequently updated)
○ Blog : https://www.codewithluv.in


Hashtags
#next #greater #element #stack #tutorial #competitivecoding