FAANG Coding Interview Question - Container With Most Water (LeetCode)

  Рет қаралды 8,147

AlgosWithMichael

AlgosWithMichael

Күн бұрын

Пікірлер: 51
@sayantaniguha8519
@sayantaniguha8519 2 жыл бұрын
What is the difference b/w this Q and *Largest Rectangle in Histogram* ?
@tomladdus9264
@tomladdus9264 4 жыл бұрын
I just got asked this question, completely failed it, now I found your video, wish I had seen it before the interview. Actually mine was harder, they want the area of the water subtracting out the area of the towers.
@AlgosWithMichael
@AlgosWithMichael 4 жыл бұрын
It's a tough problem, don't feel bad man
@subbaramanvenkateswaran2548
@subbaramanvenkateswaran2548 4 жыл бұрын
Excellent presentation, analysis and implementation of these problems. Looking forward to more from daily coding problems. Thanks a lot.
@AlgosWithMichael
@AlgosWithMichael 4 жыл бұрын
Thanks so much!
@_7__716
@_7__716 2 жыл бұрын
Good stuff. Noticed you always pre-increment. Any reason why?
@anshumansolanki6775
@anshumansolanki6775 Жыл бұрын
How does one come to the conclusion that I would move the pointer with a smaller height forward/backward? Is it something like We have the product of length * width, so when we move our pointers they will result in decreased width anyway, to keep the product same or increase it we need to increase the other parameter which is height in this case. Would that be a valid reason to convince me to move toward this solution? Because there was no hypothesis and proofing done before choosing the larger height, I am a bit confused
@joshi6688
@joshi6688 4 жыл бұрын
You are great Michael..your videos really helps a lot...keep uploading more videos...love from India.
@AlgosWithMichael
@AlgosWithMichael 4 жыл бұрын
Thank you so much!
@soumeshnayak4546
@soumeshnayak4546 2 жыл бұрын
thxn for awesome videos sir your coding style is best
@IhavelicensetoDrive
@IhavelicensetoDrive 3 жыл бұрын
God, the way you explain these problem makes them so much easier to understand. Thanks!
@Piggybacking
@Piggybacking 3 ай бұрын
Thank you Michael, so helpful
@SachinDevatarTechie
@SachinDevatarTechie 3 жыл бұрын
The explanation is Amazing, Please make more videos. I shared your channel at my university so that it will be helpful with amazing content.
@AlgosWithMichael
@AlgosWithMichael 3 жыл бұрын
Wow thank you! That makes me so happy
@hnkien
@hnkien 3 жыл бұрын
Incase of height(l) = height(r), you do l+1 and r-1. This may not right and you can miss a case for better maximum if only do l+1 or r-1 at one side.
@anshumansolanki6775
@anshumansolanki6775 Жыл бұрын
Exactly we did not cover every case, and if we did, it was not done by us voluntarily.
@sarvesh97
@sarvesh97 4 жыл бұрын
Thanks for the amazing content!! You definitely deserve more subscribers🔥
@AlgosWithMichael
@AlgosWithMichael 4 жыл бұрын
That is nice of you to say, I appreciate that!
@niva6338
@niva6338 4 ай бұрын
I love the presentation
@mettudheeraj1393
@mettudheeraj1393 4 жыл бұрын
Great explanation sir continue your amazing work
@AlgosWithMichael
@AlgosWithMichael 4 жыл бұрын
Thanks so much!
@theusurper
@theusurper 2 жыл бұрын
Excellent explanation...Thank you bunch
@AlgosWithMichael
@AlgosWithMichael 2 жыл бұрын
Thank you!
@AnshulSharma-vw9wu
@AnshulSharma-vw9wu 4 жыл бұрын
very nice explanation. Thanks
@AlgosWithMichael
@AlgosWithMichael 4 жыл бұрын
You are welcome!
@mangoman2023
@mangoman2023 2 жыл бұрын
You are awesome. Your explaination makes it very easy to understand these problems. Thank you very much for making these videos.
@Anubis10110
@Anubis10110 2 жыл бұрын
You are amazing
@antonio609
@antonio609 3 жыл бұрын
thank you Michael, your explanation is really good
@shrikantshelar5044
@shrikantshelar5044 4 жыл бұрын
awesome
@AlgosWithMichael
@AlgosWithMichael 4 жыл бұрын
Thanks!
@svalyavasvalyava9867
@svalyavasvalyava9867 3 жыл бұрын
thank you a lot for the effort you put into your videos!!!
@yitingg7942
@yitingg7942 4 жыл бұрын
You are awesome!! please do more videos like this!!
@yitingg7942
@yitingg7942 4 жыл бұрын
Nobody explains it better than you do!
@AlgosWithMichael
@AlgosWithMichael 4 жыл бұрын
Thank you! Will do!
@AlgosWithMichael
@AlgosWithMichael 4 жыл бұрын
Thank you!
@yitingg7942
@yitingg7942 3 жыл бұрын
@@AlgosWithMichael Hi Michael, can you please do another one for 394 decode String ? I can't understand the other videos like yours.
@testingDhippiuh
@testingDhippiuh 4 жыл бұрын
Thanks for sharing
@AlgosWithMichael
@AlgosWithMichael 4 жыл бұрын
Thanks for watching!
@samuelsam5868
@samuelsam5868 3 жыл бұрын
Good explanation and Presentation.
@AlgosWithMichael
@AlgosWithMichael 3 жыл бұрын
Thank you!
@manasbolt
@manasbolt 3 жыл бұрын
pls upload rotten egg problem... Thanks in advance :))
@AlgosWithMichael
@AlgosWithMichael 3 жыл бұрын
As soon as possible
@caminante4222
@caminante4222 3 жыл бұрын
Dude, you are one of the best ones at these type of videos. Love watching your solutions. Could you cover leetcode 523 and new year chaos from hackerrank?
@AlgosWithMichael
@AlgosWithMichael 3 жыл бұрын
Thank you very much! and yea sure
@akshatpahwa534
@akshatpahwa534 2 жыл бұрын
This is one of the best video, I ever watched on KZbin. I wish you have more subscribers.
@AlgosWithMichael
@AlgosWithMichael 2 жыл бұрын
Wow, thank you!
@robertsedgewick1266
@robertsedgewick1266 3 жыл бұрын
Great explanation, you made it very intuitive. Thanks for sharing!
@AlgosWithMichael
@AlgosWithMichael 3 жыл бұрын
No problem!
@luomin1130
@luomin1130 3 жыл бұрын
I like your video, you give very nice explanation.
@AlgosWithMichael
@AlgosWithMichael 3 жыл бұрын
Thank you! 😃
Time Based Key Value Store | Netflix Coding Question | Binary Search
14:21
Bjarne Stroustrup: C++ | Lex Fridman Podcast #48
1:47:13
Lex Fridman
Рет қаралды 1 МЛН
Help Me Celebrate! 😍🙏
00:35
Alan Chikin Chow
Рет қаралды 56 МЛН
How do Cats Eat Watermelon? 🍉
00:21
One More
Рет қаралды 11 МЛН
Decode String | FAANG Coding Question | Stack
17:03
AlgosWithMichael
Рет қаралды 10 М.
Amazon Coding Interview Question - First Missing Positive (LeetCode)
20:47
Coding Interview Prep | 3 MUST KNOW Graph Problem Tips
13:27
AlgosWithMichael
Рет қаралды 18 М.
Shapley Values for Machine Learning
21:42
Inside Learning Machines
Рет қаралды 61
Container with Most Water - Leetcode 11 - Python
12:37
NeetCode
Рет қаралды 343 М.
Help Me Celebrate! 😍🙏
00:35
Alan Chikin Chow
Рет қаралды 56 МЛН