This channel is gold because i find zero clickbait videos like other youtube channels in dsa domain. Keep it up 💚
@CodeWithSunchitDudeja2 жыл бұрын
Thanks a lot Sugandh, me makes feel there is still hope in this world and people can clearly see through the reality.
@shrimpo64162 жыл бұрын
Tricky question that got me thinking for so long. Great explanation and awesome code! I code in Python but your code is so clean and easy to understand that I feel can read Java now XD
@CodeWithSunchitDudeja2 жыл бұрын
The question is based on Monotone stack, complete stack playlist is here kzbin.info/aero/PLEI-q7w3s9gQpqrVq_9VkYugtILlqSB1I
@zhuochen87932 жыл бұрын
very very detailed explanation. I finally got it!! Thank you!
@CodeWithSunchitDudeja2 жыл бұрын
Glad it helped!
@chin2uuu2 жыл бұрын
Great Explanation so far so good
@jessanraj90862 жыл бұрын
Good job 🔥
@abhishek__anand__ Жыл бұрын
Great Explanation
@CodeWithSunchitDudeja Жыл бұрын
Glad you liked it
@Akhilasrikeerthana9 ай бұрын
Thank you so much for the great explanation. I have one doubt when iterating through the stack in obtaining final output. so the stack consists of elements in descending order right and when we iterate through it does the stringbuilder not consist of elements in descending order but not ascending? how is the stack being iterated in bottom to top order here?
@utsavgupta7462 жыл бұрын
This question is a bit tricky ... And i found it hard to think.. Thanks for the video sir... Happy holi🥳
@CodeWithSunchitDudeja2 жыл бұрын
Most welcome 😊
@siddharthsaxena64952 жыл бұрын
Great explanation,happy holi.
@CodeWithSunchitDudeja2 жыл бұрын
Thank you! You too!
@jatinvashisht71532 жыл бұрын
Sir plz sde roadmap pr ek video bna do
@techmoon_2 жыл бұрын
Space complexity is O(1).
@prakhartandon8288 Жыл бұрын
It will be 0(n) since we are using a stack of len close to n and two constant space arrs
@priyadarshanr2962 жыл бұрын
do we need the visited array ? won't it work without that for(int i=0;i