Container With Most Water - LeetCode 11 - Python

แชร์
ฝัง
  • เผยแพร่เมื่อ 27 พ.ย. 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!:)

ความคิดเห็น • 17

  • @Drdoggo24
    @Drdoggo24 3 ปีที่แล้ว +2

    just finished your entire playlist! thankss

    • @DEEPTITALESRA
      @DEEPTITALESRA  2 ปีที่แล้ว

      Awesome omg glad u liked the videos Saaketh!:)

  • @saierangangv84
    @saierangangv84 ปีที่แล้ว +1

    Easy explanation.thanks

  • @Derpthemeus
    @Derpthemeus ปีที่แล้ว

    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  11 หลายเดือนก่อน

      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: th-cam.com/video/8ZmETT6JIRo/w-d-xo.htmlsi=jj67f4U5FKc5UUd-

  • @Drdoggo24
    @Drdoggo24 3 ปีที่แล้ว

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

    • @DEEPTITALESRA
      @DEEPTITALESRA  3 ปีที่แล้ว

      Tysm!! haha love to hear that Saaketh!! :)

  • @sgcreations5638
    @sgcreations5638 2 ปีที่แล้ว +1

    Thanks , a very easy and simple explanation

  • @sayantaniguha8519
    @sayantaniguha8519 2 ปีที่แล้ว

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

  • @practicalbong1497
    @practicalbong1497 2 ปีที่แล้ว +1

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

  • @divyatalesra4767
    @divyatalesra4767 3 ปีที่แล้ว +1

    Wow great!!!

  • @Wlewilly
    @Wlewilly 3 ปีที่แล้ว

    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 2 ปีที่แล้ว +1

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

  • @mythbuster533
    @mythbuster533 3 ปีที่แล้ว

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

    • @kartikeyaverma
      @kartikeyaverma 3 ปีที่แล้ว +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