Container With Most Water - LeetCode 11 - Python
Vložit
- čas přidán 7. 09. 2024
- If this HELPED at all, check out my channel for even **MORE VIDEOS**!!:)) www.youtube.co...
Explaining Container With Most Water in Python (Leetcode)
@3:40 - I mean to say "1 and 7 are a distance 8 apart" not '1 and 8 being a distance of 7 apart'
Code: github.com/dee...
Music: Bensound
Lemme know up if you have any questions at all!:)
just finished your entire playlist! thankss
Awesome omg glad u liked the videos Saaketh!:)
Easy explanation.thanks
GG!! Thanks for this! I was so lazy to code for a while.. I jumped back to coding after watching your explanation lol
Tysm!! haha love to hear that Saaketh!! :)
hello mrs. deepti when will u be returning to the youtubes? i ran this algorithm and it said that the container with the most water is the bucket i've been crying into everytime i check your channel for new videos. thank you and god bless.
hello mr. derpthemeus! I've returned to the you of the tubes. Excellent! Love seeing real-life practical applications of these alogirthms - glad to be of assistance! new video is up just for you good sir: czcams.com/video/8ZmETT6JIRo/video.htmlsi=jj67f4U5FKc5UUd-
your explanation was awesome ,love to connect on Linkedin if you have an account
Thanks , a very easy and simple explanation
Thx!:)
Wow great!!!
Thx sm:))
What is the difference b/w this Q and *Largest Rectangle in Histogram* ?
can anyone explain why the right pointer is end = len(height) - 1? shouldn't the end be at it be it be index 9? and the length of the list is going to be 8 starting from index zero? So we would expect len(height) + 1 in order for it to be 9?
index always starts from zero so here it will start will be 0 and end 8 , and len(height) =9 here
Why is the answer not 8×8 64???
because we are calculating the area, that is : height * width. It will be the index of both the 8s (6-1) into height (8) = 40