Trapping Rainwater Problem | Leetcode | Rain water trapping problem | DSA-One Course #16

Поділитися
Вставка
  • Опубліковано 23 січ 2025

КОМЕНТАРІ • 314

  • @md.ualiurrahmanrahat2400
    @md.ualiurrahmanrahat2400 3 роки тому +394

    Million times better explanation provided here than those unwanted unnecessary animated videos. Thanks a lot Anuj Bhaiya.

    • @chiragjain1424
      @chiragjain1424 3 роки тому +1

      totally agree

    • @hodex5763
      @hodex5763 3 роки тому +27

      We got the reference bro chill 😂

    • @mayurkapadnis4265
      @mayurkapadnis4265 3 роки тому +43

      Criticising apna college 😂😂😂

    • @mihirkumar5857
      @mihirkumar5857 3 роки тому +7

      Sahi baat😂😂

    • @devendr09
      @devendr09 3 роки тому +14

      totally agreed. at apna college only didi is okay, the bhaiya there teaching is very bad. I finally understood Rainwater trap problem.

  • @abhinavgoswami9264
    @abhinavgoswami9264 3 роки тому +17

    Aur laao bhaiya aur laao - maza aa raha hai. Mein sirf aapke solutions and approaches hi dekhta hun kyun ki mujhe samjh acche se aata hai aur aapka explanation hai hi alag level aur ekdum clear. Thank you so so so so much.

  • @freecontent2438
    @freecontent2438 Рік тому +7

    I got this type of question in a interview of a product based company. Was able to do wit confidance ❤❤❤❤ thank. you

  • @shubhamsonawane967
    @shubhamsonawane967 3 роки тому +14

    Pen +white board + bhaiyya's easy explaination=consept clear☺️

  • @ADITYA-rl8ub
    @ADITYA-rl8ub 3 роки тому +75

    Bhaiya animated content nahi h magar full concept clear hi jata h 👍

    • @amanahmed6057
      @amanahmed6057 3 роки тому +8

      wo kya hai na har jagah animation ghosed nahi sakte ,kai cheeze simple hi achi lagti hai

    • @shubhamsonawane967
      @shubhamsonawane967 3 роки тому +5

      @@amanahmed6057 agar concept achese Padhaya jaye na to anim ki koe jarurat nahi

  • @pravinmhaske1001
    @pravinmhaske1001 3 роки тому +13

    Million times better explanation provided here than those unwanted unnecessary animated videos. Thanks a lot Anuj Bhaiya.
    We understand more on black/white board thank you Bhaiya.

  • @cryptus_neoxys
    @cryptus_neoxys 3 роки тому +32

    The consistency 🔥🔥🔥

  • @varunrao88
    @varunrao88 Рік тому +3

    OMG! This was such a beautiful and intuitive solution!! I broke my head understanding Leetcode solutions but you explained it so well!!! Kudos!!

  • @travellermanworld
    @travellermanworld Рік тому +1

    bhai bhai itna simple kaise ho skta, paji tusi great ho😅, gfg ka paid course liya hu baki yt pr v search kiya but isase axa easy koi nhi bta skta❤❤❤❤

  • @dibyajyoti1938
    @dibyajyoti1938 3 роки тому +4

    Teaching way is awesome ❤️❤️❤️

  • @anupamsingh8323
    @anupamsingh8323 2 місяці тому

    This video shows "Teaching is not a skill, it is a passion." 👏👏

  • @this.akhils
    @this.akhils 3 роки тому +7

    Leetcode says this approach is having high complexity, but I haven't seen a better, simpler logic.

    • @devendr09
      @devendr09 3 роки тому +2

      its O(n), i dont think there can be a better time complexity.

    • @arghyadeepdas3475
      @arghyadeepdas3475 2 роки тому +3

      @@devendr09 the space is O(n) as auxulary array r required..... it can be done in O(1) space complexity using 2 pointer

    • @ritshpatidar
      @ritshpatidar 2 роки тому

      @@arghyadeepdas3475 O(1) is impossible, using 2 pointers it will be O(n/k), which is equal to O(n).

    • @anindyapaul2239
      @anindyapaul2239 3 місяці тому

      @@ritshpatidar Space complexity would reduce by using two pointer approach

  • @gtbaba123
    @gtbaba123 2 роки тому

    this guy ekdum to to point explanation no natak direct easily

  • @prashantsahu6212
    @prashantsahu6212 3 роки тому +3

    easy and simple, i spent lot of time to do it by myself , but today i come to know it was easy . Thank you bhaia

  • @pavan31233
    @pavan31233 6 місяців тому +1

    I'm being thankful for ur explanation sir..eventhough I'm unable to understand hindi,I understood concept so easily😄🙌

  • @kumardas15
    @kumardas15 3 роки тому +7

    Nice explanation!!! Soo simple and to the point!! Thanks lot!!

  • @viraltoovideos
    @viraltoovideos Рік тому

    I have seen a lot of solutions to this problem but no one has understood finally anuj bhaiya you have explained thank you Anuj bhaiya

  • @arunimachakraborty1175
    @arunimachakraborty1175 Рік тому

    oh my God. Itna easy explanation!! thank you so much. I could write the code before looking at your code

  • @manojsingh-ev4gq
    @manojsingh-ev4gq 2 роки тому

    I have seen lot of channels to understand dsa and algo,,trust me sir ur way of explanation is too good even a beginner can understand thing s with ease thanx>>>3

  • @riddhinilawar7875
    @riddhinilawar7875 2 роки тому +1

    Very clear and amazing explanation. Thank you Bhaiya. After your explanation I could able to code it myself

  • @YashTalks_YT
    @YashTalks_YT 2 роки тому +1

    Nobody can explain better than him .. KUDOS!!

  • @rohanism26
    @rohanism26 2 роки тому +2

    You're the best teacher I've ever seen

  • @ashishkumarpal3034
    @ashishkumarpal3034 3 роки тому

    thanku bhaiya aapne bohot simple tarike se samjha diya aur kisi channel pe to bahut confusing lag raha tha .THANKS A LOT

  • @shivamsaha06
    @shivamsaha06 3 роки тому +11

    A great way of explaining, thank you, buddy!

  • @shadan20s
    @shadan20s 4 місяці тому

    THANKYOU SOO much sir
    kya kammal ka samjhaya hai , sab isko itna tough bana rehe thien
    aaap ne kya hi samjha dia

  • @KishorAutade
    @KishorAutade 2 роки тому +5

    Bhai, based on first hint only I could solved this problem. Really appreciate your content. Thanks 👍

  • @srushtikale7455
    @srushtikale7455 6 місяців тому

    I did my first hard problem on Leetcode today, Very nice explanation

  • @rohan8758
    @rohan8758 6 місяців тому

    Great explanation Anuj bhaiyan, Intuition build through this approach which i will not forget!

  • @shreyasdeshmukh3301
    @shreyasdeshmukh3301 Рік тому +1

    Great explaination thank you Anuj Bhaiya.

  • @deepakkumar-fp8uj
    @deepakkumar-fp8uj 3 роки тому

    Bhaiya ek baar mein code submit ho gya, bs 7:10 tk dekha, thanks a lot

  • @themobilegamer318
    @themobilegamer318 2 роки тому +1

    thank you for such a simple explination in 10 min . Thank you so much bro

  • @vidyaverse9991
    @vidyaverse9991 3 роки тому +9

    Always attentive during your lecture ❤️

  • @randomHelper
    @randomHelper 3 роки тому

    Muje UA-cam per sbse accha brute force explanation lga

  • @krishna-nakum
    @krishna-nakum 3 роки тому +1

    Thank you bhaiya you gave awesome approach and very simple and easy to understand.

  • @BljtKuntal
    @BljtKuntal 3 роки тому

    bhoot jada mast samjaya h , i wish ki m jo bhi dsa ki problem solve karu uspar apki vdo mile.

  • @shahidtauheed7553
    @shahidtauheed7553 3 роки тому

    Bhai sachme kam time me badiya samjha diya...thanks bhai !!

  • @rishavbagri
    @rishavbagri 9 місяців тому

    a very good explanation seeing u first time and it was really amazing

  • @abhinay4200
    @abhinay4200 2 роки тому

    You are a genius, took me 2 hours to solve and could only come with o(n2) brute force.

  • @PratikNandoskar
    @PratikNandoskar 8 місяців тому

    Super clear Explanation. Thank you

  • @harshilgupta3431
    @harshilgupta3431 9 місяців тому +1

    Thank U Sir , It was an excellent explanation

  • @myyoutubeisthis
    @myyoutubeisthis 8 місяців тому

    Thank you sir for this amazing and to-the-point explanation

  • @mananbahl4842
    @mananbahl4842 2 роки тому +1

    ahahahahah aj tak ek bar me question nhi bana mujse ye video dekhne ke baad ek bar me seedha ek bar me ban gaya ... thanksss

  • @codewisersahil2280
    @codewisersahil2280 3 роки тому

    Best ho yr Anuj bhaiya ap 🙏🏻🙏🏻🙏🏻🙏🏻👍🏻👍🏻👍🏻👍🏻👍🏻❤️❤️❤️❤️

  • @55_jyotirmaykar30
    @55_jyotirmaykar30 2 роки тому

    Simple, crisp and best explanation ❤️❤️

  • @parthpandya2651
    @parthpandya2651 3 роки тому +1

    bhai thanks a ton yaar boht hi jyada kam aa rhi he ye series specially java me code krne valo k lie. bs ek suggestion he bhai dynamic programming bhi krvalo jaldi se

  • @tanyasinha9684
    @tanyasinha9684 Рік тому

    Thanks for such simplified solution . I was looking at all other places , it just confused me.

  • @rohitsorot5136
    @rohitsorot5136 3 роки тому +1

    thanks for videos keep uploading dsa with java one day millions of views honge espe

  • @learncode6180
    @learncode6180 3 роки тому +4

    Nicely explain bhaiya ❤️

  • @ArnabBhadra02
    @ArnabBhadra02 6 місяців тому

    Best explanation,
    Better than striver

  • @justaRidhaMthinGs
    @justaRidhaMthinGs 2 роки тому

    very good explanation bhaiya..!!
    easy to understand..thank you ..!!😊🙌

  • @sadeghkhosravi
    @sadeghkhosravi Рік тому

    Very nice explanation. Thank you♥♥💕

  • @raziuddin2081
    @raziuddin2081 Рік тому

    amazing explanation thanks alot....very easy to understand.

  • @bhuveshdhiman2
    @bhuveshdhiman2 3 роки тому

    Areee bhai maza aagaya, sab samajh aagaya, kabhi nhi bhulunga ❤

  • @premparmar1265
    @premparmar1265 2 роки тому

    Really Good explanation of every problem

  • @Hariom-dj6vl
    @Hariom-dj6vl 3 роки тому +2

    Best teacher ❤️

  • @TheBikerDude2024
    @TheBikerDude2024 4 місяці тому

    Excellent Explaining.

  • @nitisharav9269
    @nitisharav9269 2 роки тому

    Great explanation, even a kid can understand

  • @AmarSingh-ih5lx
    @AmarSingh-ih5lx Рік тому

    nice explaination Anuj bhaiya

  • @ExpertFact49
    @ExpertFact49 10 місяців тому +1

    Thankyou Anuj bhaiya 🫡❤

  • @anshika_1208
    @anshika_1208 28 днів тому

    Thank you anuj bhaiya for this video💖

  • @ishikagarg5261
    @ishikagarg5261 Рік тому

    Good explanation. Thank you so much @Anuj

  • @neerajmahapatra5239
    @neerajmahapatra5239 3 роки тому

    Bahut behtarin explanation ...........

  • @PankajSarkarOpenEye
    @PankajSarkarOpenEye 3 роки тому +4

    Amazing 👌

  • @madhushraba
    @madhushraba 3 роки тому +1

    Very very informative and useful ❤️❤️❤️

  • @rahuljain224
    @rahuljain224 Рік тому

    Excellent explanation thank You

  • @vineetbirlasoft
    @vineetbirlasoft 7 місяців тому

    Bahut badia Anuj bhai

  • @ankitkumarpathak6768
    @ankitkumarpathak6768 2 роки тому

    explanation bohot badhiya bhaiya

  • @Rider66778
    @Rider66778 Рік тому +1

    Thanks Anuj bhaiya ❤
    Your explanation is so amazing 😍
    Best tutorial for this question on whole UA-cam.
    Concepts gets crystal clear in only 10 minutes 😮

  • @jatinnandwani6678
    @jatinnandwani6678 Рік тому

    Crystal clear explanation

  • @GhostRider....
    @GhostRider.... 2 роки тому

    very nice and clear explanation bhaiya

  • @sivakalyanreddy7536
    @sivakalyanreddy7536 9 місяців тому

    After watching problem statement this question seems to be very hard but after watching the approach it is very easy question.

  • @neelsoni13062
    @neelsoni13062 Рік тому

    Amazing Sir for your efforts. Pls making such videoes

  • @kamleshthawani1023
    @kamleshthawani1023 Рік тому

    Bohot acha explanation bhaiya!!

  • @NiranjanMali-he5xo
    @NiranjanMali-he5xo 6 місяців тому

    heartly congratulations sir

  • @shaantyagi2187
    @shaantyagi2187 3 роки тому

    love you Anuj Bhaiya, best series for DSA , Thank you

  • @arifsaleem-7377
    @arifsaleem-7377 11 місяців тому

    where is million like button? your explanation is so great and easy...

  • @viveksharma1400
    @viveksharma1400 3 роки тому +4

    100k soon 🔥🔥

  • @arghyadeep7
    @arghyadeep7 2 роки тому

    Best solution there is out there

  • @growwithriu
    @growwithriu 3 роки тому +7

    Keep them coming

  • @hannanhub1717
    @hannanhub1717 Рік тому

    thanks for the simple explanation

  • @atanumazumder4162
    @atanumazumder4162 2 роки тому +1

    Thank you very much for making it so easy. Loved it

  • @pravimal7729
    @pravimal7729 Рік тому

    Nice explanation. Simple and on point ♥️

  • @sgcreations5638
    @sgcreations5638 2 роки тому

    very simple and easy explanation

  • @divijkatyal3824
    @divijkatyal3824 3 роки тому +16

    Best explanation bhaiya👍
    Instead of two arrays can we use stacks also that would reduce space complexity?

  • @digvijay17july
    @digvijay17july 2 роки тому +1

    Nice explanation! Simple and Crisp!

  • @tesLaOP
    @tesLaOP 3 роки тому +1

    better explaination than that of apna college tbh in this trapping rainwater problem

  • @haricharanpal1761
    @haricharanpal1761 3 роки тому +1

    Bhot badiya😊😊

  • @codingcrush
    @codingcrush 3 роки тому +1

    Better explanation

  • @mohammeddaoud5018
    @mohammeddaoud5018 2 роки тому

    Best explaination thanks Anuj

  • @tech_and_memes
    @tech_and_memes 2 роки тому

    done bhaiya thanks a lot for such nice explanations

  • @bhagavantulasi5150
    @bhagavantulasi5150 2 роки тому +1

    Nice explanation

  • @sonofgod00
    @sonofgod00 2 роки тому +1

    Thanks bhai

  • @sonalisharma9654
    @sonalisharma9654 3 роки тому

    Thanks Anuj. Very good explanation

  • @-PRASANTHI
    @-PRASANTHI 2 роки тому

    best explanation ever...

  • @utsavaggrawal2697
    @utsavaggrawal2697 Рік тому

    nice approach 🙏

  • @pratikmhatre4815
    @pratikmhatre4815 2 роки тому

    Great solution

  • @mohammedamansha6052
    @mohammedamansha6052 2 роки тому

    Great explanation

  • @nikhilkoushik9083
    @nikhilkoushik9083 Рік тому

    Awesome 🙌🙌🙌🙌🙌

  • @NoobCoder623
    @NoobCoder623 2 роки тому

    I understood it in 11 minutes without reversing the video .
    Crystal clear explanation.
    But code is showing index out of bound exception on leetcode.

  • @abhinav5181
    @abhinav5181 2 роки тому

    Best in whole universe