Daily Temperatures (LeetCode 739) | Full solution with animations and examples | Study Algorithms

  Рет қаралды 18,425

Nikhil Lohia

Nikhil Lohia

Күн бұрын

Пікірлер: 40
@nikoo28
@nikoo28 10 ай бұрын
At 8:33 I forget to push the element 69 or index [4] in the stack. Sorry for the confusion. In the next iteration it will pop out since 69 is smaller than 71.
@abheermehrotra329
@abheermehrotra329 2 жыл бұрын
Best and the easiest explanation till nowwwwww
@redhair1401
@redhair1401 2 жыл бұрын
One thing that help me in this video was that you remender me that it is a problem similar to next greatest element
@sanand6084
@sanand6084 Жыл бұрын
Great bhai !!! I know you are a busy man but can you please upload more questions from leetcode (when you find time) ? Your way of explaining is really good.
@nikoo28
@nikoo28 Жыл бұрын
Thanks Anand, I upload a video every week and try to be consistent with it. Creating videos in this depth and quality takes a bit of time. I don’t want to compromise on the quality. Hope you understand.. :) My videos are made in such a way that you can watch them on any device.
@arunikaharit7203
@arunikaharit7203 Ай бұрын
Viewers : Solution starts from 5:52 , Welcome!!
@himanshu1304
@himanshu1304 2 жыл бұрын
very clear explanation ! thank you
@nikoo28
@nikoo28 2 жыл бұрын
Glad it helped
@islamwaled5956
@islamwaled5956 Жыл бұрын
daaaaaaaamn , i have a headache but i feel happy also thank you bro thats helped a lot
@anshumaan1024
@anshumaan1024 9 ай бұрын
nice explanation 🙂
@samarthtandale9121
@samarthtandale9121 Жыл бұрын
Amazing explanation! Please upload the solution of 'Word Search 2' problem using the trie data structure?
@mohitnegi724
@mohitnegi724 Жыл бұрын
Thank you for this. You're a excellent teacher.
@sanjammanagi6562
@sanjammanagi6562 Жыл бұрын
great explaination
@abheermehrotra329
@abheermehrotra329 2 жыл бұрын
Thank youuuuuuuuu so muchhhh bhaiyaaaaaaaa 😍😍😍😍😍😍😍😍😍😍
@anagnaikgaunekar9081
@anagnaikgaunekar9081 Ай бұрын
I have coded a 2 pointer approach for this. But somehow leetcode is giving time limit exceeded for a very large array
@praneashk7797
@praneashk7797 Жыл бұрын
wow literally the explanation is vvvvvgood man keep it up
@ryanren7273
@ryanren7273 Жыл бұрын
This helps a lot!! Followed.
@satyamgupta6030
@satyamgupta6030 Жыл бұрын
what a great explaination bhaiya thanks alot . Please keep making such amazing videos.
@nikoo28
@nikoo28 Жыл бұрын
Always welcome
@monishrainy8568
@monishrainy8568 Жыл бұрын
great explanation
@lalanabiridi8358
@lalanabiridi8358 Жыл бұрын
brilliant brilliant
@molyoxide8358
@molyoxide8358 Жыл бұрын
At 8:40 why didn't you store 69 ??
@nikoo28
@nikoo28 Жыл бұрын
You are absolutely correct, 69 should have been added to the stack. My error. Thanks for pointing that out. The solution will still remain the same though as 69 will get popped out in the next step.
@molyoxide8358
@molyoxide8358 Жыл бұрын
@@nikoo28 For 2 days I was frustrated due to this one thing, I was really confused whether did I missed something or it was something from your side. BTW that day I had disliked this video but today after this clarity I have reversed it now. Liked it buddy👍
@nikoo28
@nikoo28 Жыл бұрын
@@molyoxide8358 once again...so sorry for the confusion
@roto7648
@roto7648 Жыл бұрын
Thanks buddy, had the same doubt!
@everyontech2716
@everyontech2716 Жыл бұрын
I was also confused with this part. I did dry run twice and realize its video mistake. But, looking at comments i was 100% sure it was video mistake. @nikhil can you add something video for future clarification or you can also pin these comments. Thanks
@mkd2002
@mkd2002 Жыл бұрын
Hey Thanks Man!
@hannanhub1717
@hannanhub1717 3 ай бұрын
thanks sir
@subee128
@subee128 11 ай бұрын
Thank you
@astik2002
@astik2002 Жыл бұрын
can anyone provide me the Python Code, Great explanation, I thoroughly understood the code
@mavachill
@mavachill Жыл бұрын
As we are using stack can we write a recursive code for this question
@nikoo28
@nikoo28 Жыл бұрын
what will be your approach? try creating a pseudo code for it.
@sharikkumar-z9x
@sharikkumar-z9x 3 ай бұрын
u are using stack and array both , still space complexity is o(n) how?
@sohaildarwajkar9979
@sohaildarwajkar9979 2 ай бұрын
Since we are using array to return the answer which question itself asks us to so we are not using extra O(N) to solve the question.
@himanshuranjan8657
@himanshuranjan8657 10 ай бұрын
69 and 71 ko push krvane vala step gyab kr diya apne confusion ho gya ! aage se dyan degeye aaise mat krye
@nikoo28
@nikoo28 10 ай бұрын
so sorry for that, I have added a comment to clear the confusion
@aviralarpan7350
@aviralarpan7350 2 жыл бұрын
LOL
This Game Is Wild...
00:19
MrBeast
Рет қаралды 152 МЛН
FOREVER BUNNY
00:14
Natan por Aí
Рет қаралды 25 МЛН
Perfect Pitch Challenge? Easy! 🎤😎| Free Fire Official
00:13
Garena Free Fire Global
Рет қаралды 100 МЛН
Увеличили моцареллу для @Lorenzo.bagnati
00:48
Кушать Хочу
Рет қаралды 8 МЛН
Daily Temperatures - Leetcode 739 - Stacks (Python)
12:35
Greg Hogg
Рет қаралды 7 М.
How to Solve ANY LeetCode Problem (Step-by-Step)
12:37
Codebagel
Рет қаралды 300 М.
739. Daily Temperatures | Monotonic Stack | Space Optimisation O(1)
28:11
Leetcode Visualized: 739. Daily Temperatures
18:18
Alexander Le
Рет қаралды 21 М.
Daily Temperatures - Monotonic Stack - Leetcode 739 - Python
11:52
I gave 127 interviews. Top 5 Algorithms they asked me.
8:36
Sahil & Sarra
Рет қаралды 673 М.
This Game Is Wild...
00:19
MrBeast
Рет қаралды 152 МЛН