LeetCode 42 - Trapping Rain Water

แชร์
ฝัง
  • เผยแพร่เมื่อ 27 ต.ค. 2024

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

  • @rohitpandit4507
    @rohitpandit4507 4 ปีที่แล้ว

    best explaination

  • @johanbarua7279
    @johanbarua7279 4 ปีที่แล้ว

    This is a solid explanation mate..

  • @sushantkshirsagar
    @sushantkshirsagar 4 ปีที่แล้ว

    Awesome

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

    make more videos like this.

  • @miogallobianco1
    @miogallobianco1 4 ปีที่แล้ว

    Definitely the best explanation! Thank you!

  • @sunacha1746
    @sunacha1746 4 ปีที่แล้ว

    Really make sense to me, Thanks a lot!

  • @divyatejaswinivengada6368
    @divyatejaswinivengada6368 4 ปีที่แล้ว

    thanks man!
    awesome explanation

  • @alicebobson2868
    @alicebobson2868 4 ปีที่แล้ว +5

    the best explanation ive found of this question

  • @reassume4826
    @reassume4826 4 ปีที่แล้ว

    U r Awesome..

  • @keytun69
    @keytun69 4 ปีที่แล้ว

    dude this is the best explanation I've seen for this problem yet. the diagram you iteratively drew out for the process with the height/left/right arrays really was so intuitive the way you did it, you rock thanks so much.

  • @chanu1987
    @chanu1987 4 ปีที่แล้ว

    Of all the explanations I have gone through, this is the only one that made sense to me. Thanks a lot.

  • @reemmohammed4730
    @reemmohammed4730 4 ปีที่แล้ว

    Amazing explanation :)

  • @abhaytiwari1615
    @abhaytiwari1615 4 ปีที่แล้ว

    O M F G
    why couldn't i think of this? 😪😪😪

  • @gene56181
    @gene56181 5 ปีที่แล้ว

    The clearest explanation I find so far.

  • @longbowei8196
    @longbowei8196 5 ปีที่แล้ว

    great! Thanks a lot!

  • @obinnaubah9045
    @obinnaubah9045 4 ปีที่แล้ว

    Why did you keep track of the highest height on the right from right side?

    • @reemmohammed4730
      @reemmohammed4730 4 ปีที่แล้ว

      Because we need to get the Maxmuim height for the right wall so we need to walk from right to left to get the right value from that direction, if we walk from left to right that's mean we calculating the left wall again.