Container With Most Water - LeetCode 11 - Python

Sdílet
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!:)

Komentáře • 17

  • @Drdoggo24
    @Drdoggo24 Před 3 lety +2

    just finished your entire playlist! thankss

    • @DEEPTITALESRA
      @DEEPTITALESRA  Před 2 lety

      Awesome omg glad u liked the videos Saaketh!:)

  • @saierangangv84
    @saierangangv84 Před rokem +1

    Easy explanation.thanks

  • @Drdoggo24
    @Drdoggo24 Před 3 lety

    GG!! Thanks for this! I was so lazy to code for a while.. I jumped back to coding after watching your explanation lol

  • @Derpthemeus
    @Derpthemeus Před 9 měsíci

    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.

    • @DEEPTITALESRA
      @DEEPTITALESRA  Před 9 měsíci

      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-

  • @practicalbong1497
    @practicalbong1497 Před 2 lety +1

    your explanation was awesome ,love to connect on Linkedin if you have an account

  • @sgcreations5638
    @sgcreations5638 Před 2 lety +1

    Thanks , a very easy and simple explanation

  • @divyatalesra4767
    @divyatalesra4767 Před 3 lety +1

    Wow great!!!

  • @sayantaniguha8519
    @sayantaniguha8519 Před 2 lety

    What is the difference b/w this Q and *Largest Rectangle in Histogram* ?

  • @Wlewilly
    @Wlewilly Před 3 lety

    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?

    • @practicalbong1497
      @practicalbong1497 Před 2 lety +1

      index always starts from zero so here it will start will be 0 and end 8 , and len(height) =9 here

  • @mythbuster533
    @mythbuster533 Před 3 lety

    Why is the answer not 8×8 64???

    • @kartikeyaverma
      @kartikeyaverma Před 3 lety +1

      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