What is the difference b/w this Q and *Largest Rectangle in Histogram* ?
@tomladdus92644 жыл бұрын
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.
@AlgosWithMichael4 жыл бұрын
It's a tough problem, don't feel bad man
@subbaramanvenkateswaran25484 жыл бұрын
Excellent presentation, analysis and implementation of these problems. Looking forward to more from daily coding problems. Thanks a lot.
@AlgosWithMichael4 жыл бұрын
Thanks so much!
@_7__7162 жыл бұрын
Good stuff. Noticed you always pre-increment. Any reason why?
@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
@joshi66884 жыл бұрын
You are great Michael..your videos really helps a lot...keep uploading more videos...love from India.
@AlgosWithMichael4 жыл бұрын
Thank you so much!
@soumeshnayak45462 жыл бұрын
thxn for awesome videos sir your coding style is best
@IhavelicensetoDrive3 жыл бұрын
God, the way you explain these problem makes them so much easier to understand. Thanks!
@Piggybacking3 ай бұрын
Thank you Michael, so helpful
@SachinDevatarTechie3 жыл бұрын
The explanation is Amazing, Please make more videos. I shared your channel at my university so that it will be helpful with amazing content.
@AlgosWithMichael3 жыл бұрын
Wow thank you! That makes me so happy
@hnkien3 жыл бұрын
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 Жыл бұрын
Exactly we did not cover every case, and if we did, it was not done by us voluntarily.
@sarvesh974 жыл бұрын
Thanks for the amazing content!! You definitely deserve more subscribers🔥
@AlgosWithMichael4 жыл бұрын
That is nice of you to say, I appreciate that!
@niva63384 ай бұрын
I love the presentation
@mettudheeraj13934 жыл бұрын
Great explanation sir continue your amazing work
@AlgosWithMichael4 жыл бұрын
Thanks so much!
@theusurper2 жыл бұрын
Excellent explanation...Thank you bunch
@AlgosWithMichael2 жыл бұрын
Thank you!
@AnshulSharma-vw9wu4 жыл бұрын
very nice explanation. Thanks
@AlgosWithMichael4 жыл бұрын
You are welcome!
@mangoman20232 жыл бұрын
You are awesome. Your explaination makes it very easy to understand these problems. Thank you very much for making these videos.
@Anubis101102 жыл бұрын
You are amazing
@antonio6093 жыл бұрын
thank you Michael, your explanation is really good
@shrikantshelar50444 жыл бұрын
awesome
@AlgosWithMichael4 жыл бұрын
Thanks!
@svalyavasvalyava98673 жыл бұрын
thank you a lot for the effort you put into your videos!!!
@yitingg79424 жыл бұрын
You are awesome!! please do more videos like this!!
@yitingg79424 жыл бұрын
Nobody explains it better than you do!
@AlgosWithMichael4 жыл бұрын
Thank you! Will do!
@AlgosWithMichael4 жыл бұрын
Thank you!
@yitingg79423 жыл бұрын
@@AlgosWithMichael Hi Michael, can you please do another one for 394 decode String ? I can't understand the other videos like yours.
@testingDhippiuh4 жыл бұрын
Thanks for sharing
@AlgosWithMichael4 жыл бұрын
Thanks for watching!
@samuelsam58683 жыл бұрын
Good explanation and Presentation.
@AlgosWithMichael3 жыл бұрын
Thank you!
@manasbolt3 жыл бұрын
pls upload rotten egg problem... Thanks in advance :))
@AlgosWithMichael3 жыл бұрын
As soon as possible
@caminante42223 жыл бұрын
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?
@AlgosWithMichael3 жыл бұрын
Thank you very much! and yea sure
@akshatpahwa5342 жыл бұрын
This is one of the best video, I ever watched on KZbin. I wish you have more subscribers.
@AlgosWithMichael2 жыл бұрын
Wow, thank you!
@robertsedgewick12663 жыл бұрын
Great explanation, you made it very intuitive. Thanks for sharing!
@AlgosWithMichael3 жыл бұрын
No problem!
@luomin11303 жыл бұрын
I like your video, you give very nice explanation.