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
@arunikaharit7203
@arunikaharit7203 Ай бұрын
Viewers : Solution starts from 5:52 , Welcome!!
@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
@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.
@himanshu1304
@himanshu1304 2 жыл бұрын
very clear explanation ! thank you
@nikoo28
@nikoo28 2 жыл бұрын
Glad it helped
@samarthtandale9121
@samarthtandale9121 Жыл бұрын
Amazing explanation! Please upload the solution of 'Word Search 2' problem using the trie data structure?
@anshumaan1024
@anshumaan1024 9 ай бұрын
nice explanation 🙂
@sanjammanagi6562
@sanjammanagi6562 Жыл бұрын
great explaination
@mohitnegi724
@mohitnegi724 Жыл бұрын
Thank you for this. You're a excellent teacher.
@islamwaled5956
@islamwaled5956 Жыл бұрын
daaaaaaaamn , i have a headache but i feel happy also thank you bro thats helped a lot
@monishrainy8568
@monishrainy8568 Жыл бұрын
great explanation
@abheermehrotra329
@abheermehrotra329 2 жыл бұрын
Thank youuuuuuuuu so muchhhh bhaiyaaaaaaaa 😍😍😍😍😍😍😍😍😍😍
@satyamgupta6030
@satyamgupta6030 Жыл бұрын
what a great explaination bhaiya thanks alot . Please keep making such amazing videos.
@nikoo28
@nikoo28 Жыл бұрын
Always welcome
@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
@lalanabiridi8358
@lalanabiridi8358 Жыл бұрын
brilliant brilliant
@ryanren7273
@ryanren7273 Жыл бұрын
This helps a lot!! Followed.
@hannanhub1717
@hannanhub1717 3 ай бұрын
thanks sir
@subee128
@subee128 11 ай бұрын
Thank you
@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.
@astik2002
@astik2002 Жыл бұрын
can anyone provide me the Python Code, Great explanation, I thoroughly understood the code
@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.
@mkd2002
@mkd2002 Жыл бұрын
Hey Thanks Man!
@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
They Chose Kindness Over Abuse in Their Team #shorts
00:20
I migliori trucchetti di Fabiosa
Рет қаралды 12 МЛН
Симбу закрыли дома?! 🔒 #симба #симбочка #арти
00:41
Симбочка Пимпочка
Рет қаралды 4,4 МЛН
Daily Temperatures - Leetcode 739 - Stacks (Python)
12:35
Greg Hogg
Рет қаралды 7 М.
739. Daily Temperatures | Monotonic Stack | Space Optimisation O(1)
28:11
How to Solve ANY LeetCode Problem (Step-by-Step)
12:37
Codebagel
Рет қаралды 300 М.
Leetcode Visualized: 739. Daily Temperatures
18:18
Alexander Le
Рет қаралды 21 М.
Daily Temperatures - Monotonic Stack - Leetcode 739 - Python
11:52
Best Books for Learning Data Structures and Algorithms
14:01
Engineering with Utsav
Рет қаралды 374 М.