Segment Trees Tutorial | Range Queries | Interview Questions

Поділитися
Вставка
  • Опубліковано 20 гру 2024

КОМЕНТАРІ • 189

  • @KunalKushwaha
    @KunalKushwaha  4 місяці тому +4

    DSA + interview preparation playlist: ua-cam.com/play/PL9gnSGHSqcnr_DxHsP7AW9ftq0AtAyYqJ.html

  • @mayankchandratre191
    @mayankchandratre191 7 місяців тому +13

    Before watching this video i thought LETS LEAVE SEGMENT TREES they are difficult. But then I watched only half of this video and implemented it myself!! Thanks a lot Kunal.

  • @aspiretechie1191
    @aspiretechie1191 2 місяці тому +2

    Please make videos on Dynamic programming, Backtracking and Graphs. It will make the fulfillment of whole DSA course.
    And I am very thankful to you for teaching everything for free. Maybe you do not get proper money by uploading this but you earn a lot of respect in whole CS community.

  • @johnj171
    @johnj171 Рік тому +11

    Hi @kunal, I just wanted to express my deepest appreciation for the amazing playlist you've created. It truly is "THE BEST"! Your dedication to providing high-quality content and your passion for teaching shines through in every video.
    I can't even begin to describe how eagerly I am waiting for the upcoming topics like Graphs, Heap, HashMap, Sliding Window, Two Pointer, and Kadane's Algorithm. I know that with your guidance, these topics will become clearer and more exciting to explore.
    You are truly the man! Your teaching style is engaging, and you never compromise on the quality of the material. Learning from you has been a pleasure, and it has ignited a fire in me to learn even more.
    Thank you for making the learning journey so enjoyable and for continuously boosting my curiosity to delve deeper into the world of algorithms and data structures.
    I am eagerly looking forward to the upcoming lessons, and I can't wait to expand my knowledge even further under your guidance.

  • @aadikalra8062
    @aadikalra8062 5 місяців тому +6

    thnx a lot kunal , i am in 12th currently and i will complete the dsa course by the end of july , i also solved the questions that u gave in the github repository , i have already solved about 150 leetcode question(about 40 medium,20 hard and rest easy) also i got internship at a local startup in my area(i wanted to gain some practical world experience,ps:i know maven ,gradle and springboot) my aim is to get a high paying job so that i can live the life that i dream of , u are my motivation because of u only i started loving dsa so again thnx a lot

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

      wtf.. you are in 12th

    • @iamnoob7593
      @iamnoob7593 25 днів тому

      @@ashutoshpatnaik5977 Man competition in india is way too high , Even people in school are doing LC.

  • @ShaktiSingh-bf5rp
    @ShaktiSingh-bf5rp Рік тому +26

    I hope you would upload videos consistently and this course would be completed soon.. thank you so much for this ❤️

  • @helpinghandskurnool7750
    @helpinghandskurnool7750 Рік тому +62

    Hope this DSA Course will complete soon without Breaks❤️‍🩹💯thank you Kunal Brother

    • @saumypandey2288
      @saumypandey2288 Рік тому +5

      Bro just wake up and choose consistency 😎😎😎😎

    • @souvikghosh5768
      @souvikghosh5768 Рік тому +2

      I think this tree part will finish soon
      Don't know about the whole course

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

      @@saumypandey2288 and will sleep soon😂✌

    • @suneethathorlikonda6145
      @suneethathorlikonda6145 Рік тому +6

      Mission Impossible:- D.S.A ,
      I started seeing his dsa videos in my 1st year now I'm 3rd year still haven't completed yet!!!!!

  • @santoshb7776
    @santoshb7776 Рік тому +10

    Kunal Bhaiya, Huge respect to you and your work, you are being the reason to shape soo many people future, To be very honest this is the best best best playlist that would ever exist on UA-cam .

  • @karthikeyan.s2565
    @karthikeyan.s2565 Рік тому +12

    Back to back videos in the series gives a great hope to learn
    Thanks brother❤

  • @archanatripathi9654
    @archanatripathi9654 Рік тому +5

    Please continue this series with consistency please. I cant really thank you enough for this playlist, you dont even know how much its means for a student who wants to learn but doesn't have the capable faculty

  • @puspendra9330
    @puspendra9330 Рік тому +5

    I don't believe you are a human being! How can someone make such a complex topic extremely simple? I just can't think of a better explanation of a segment tree. Loved it, bro.

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

    probably the best explaination for segment trees on yt

  • @karthikeyanatuva3742
    @karthikeyanatuva3742 Рік тому +4

    Please Compete the DP and graph series completely ASAP. Your DSA Course is very useful and perfect of all DSA courses on youtube. Please do the course with more standard problems in the respective topic.

  • @gddmsaik5691
    @gddmsaik5691 9 місяців тому +2

    WOW!! Completed the code without looking video. Great Explanation .Thank you for creating such an amazing playlist and hope you will complete it soon :).

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

    # GOD Of DSA
    Hi I am a 11yr exp java guy was searching for some free course on youtube for DSA came accross your course and i just feel love in it...all in one place that too with java...i must say you have done very awsome work...your name will be there on this earth as long as DSA will be asked in interviews...May God Vishnu Bless You :)

  • @shivangtiwari3522
    @shivangtiwari3522 Рік тому +4

    I don't comment usually but your previous videos made me to do so. Your dsa videos are really gold, anyone who watches it with focus would get it and the little techniques you tell while teaching are very helpful. I have watched this whole series till here in a matter of 2 months. I just wanted you to complete this series and seeing you doing it is great. Best wishes to you Kunal for your future endeavours, keep spreading the knowledge.

  • @YARRAPATHRUNISHANMUKHAKUMARCSE

    super exicted to see the upcoming videos

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

    You surely are bringing about a revolution and I'm glad that I am a witness to it

  • @hasnainraza8213
    @hasnainraza8213 10 днів тому

    Best DSA course ........Thank you so much bhaiya❤

  • @UnderGradPlayers
    @UnderGradPlayers 4 місяці тому +1

    Happy friendship day KUNAL
    love you Kunal, Thank you so much ........

  • @SumitSingh-np5gg
    @SumitSingh-np5gg 5 місяців тому +2

    Segment tree done 👏👏

  • @ganeshganeshch1508
    @ganeshganeshch1508 3 місяці тому +1

    Tqs ❤️ for boosting our brains 🙌🤝

  • @samosapoint
    @samosapoint 11 місяців тому

    Wonderful lectures you are making. No one can beat you in the aspect. Great keep it up with same momentum. Finally Big thanks.

  • @BuvanAlmighty
    @BuvanAlmighty 11 місяців тому

    Very very informative and useful. Wish this kind of quality teaching is available in colleges. Pls continue the gud work.

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

    Kunal sir , you are great 👍🏻👍🏻👍🏻👍🏻
    Please complete this course 🙏☺️

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

    I have followed your each and every video. I also recommended your playlist to many of my classmates and they just loved it. Please complete this course. I personally insist this.

  • @MohitGupta-es3dc
    @MohitGupta-es3dc Рік тому +2

    much awaited videos are now coming 😁😆

  • @RidoyChandraDey
    @RidoyChandraDey 11 місяців тому

    Uff. I used to thought how can I get the answer in logN time. Now I got it. So much happy for it. Thanks a lot kunal

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

    Kunal is on fire 🔥🔥

  • @KunalKushwaha
    @KunalKushwaha  Рік тому +30

    👉 Resources
    - Join Replit: join.replit.com/kunal-kushwaha
    - Lecture code: replit.com/@KunalsReplit/Trees-3-Segment

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

      Thanks a lot kunal bhaiya 🥰

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

      I'm learning about trees and eagerly look forward to Graphs, Heap, HashMap, Sliding Window, Two Pointer, and Kadane's Algorithm topics. 💯💯💯Your teaching style is engaging💯💯💯, keeping me curious and passionate about learning more. Quality quality quality💯💯💯

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

    Kunal bhai fire h fire 🔥

  • @ArjunA-ln3ov
    @ArjunA-ln3ov Рік тому +1

    Petschge of DSA ur.
    Epic series broski .

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

    Best content u can ever find anywhere....❤❤

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

    41:15, thanks !. All because of you.

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

    That's an excellent indepth video... thanks :)

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

    I don't like DSA Kunal, I just study for the sake of understanding how they work, I love development. Your playlist is the only one which gives me confidence that I can solve most of the problems if I get a DSA round off campus as no company came to my clg so focusing on off campus.

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

    The legend come back with power ✨
    This is what we need kunal
    Thank you a lot kunal
    By the way please complete this bootcamp as possible as .

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

    Thank you brother for making such valuable content.

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

    Iam so hyped for the every next video just like an weekly anime episode.
    Thankyou kunal ❤️‍🔥

  • @AmitBiswas0142
    @AmitBiswas0142 Рік тому +2

    1st and Kunal is consistent😍

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

    Really fabulous work! Thanks a lot Kunal!

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

    39:26 To update we can also use arr[3]=100..O(1) time complexcity as no loops are make

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

    Best teacher ❤❤❤❤

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

    thanks man, Great video! loved it.

  • @Iron.agrawal
    @Iron.agrawal 2 місяці тому

    WOW CONTENT SPOTTED

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

    Please also complete (2-3)Trees and Red-Black Tress also!!!! If possible!!!

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

      coming soon

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

      Acquiring vast knowledge and intuition from you is amazing and exceptional, and what's more, it's a privilege. @@KunalKushwaha waiting for interview questions on trees and more !!! 💯

  • @AKclashroyale
    @AKclashroyale Місяць тому

    thank you for this lecture,very grateful!!

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

    Thank you for everything 🙏🙏

  • @Steel16
    @Steel16 Рік тому +2

    THE GOAT IS BACK

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

    Hoping for fast completion ❤❤

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

    ADVANCE CONGRATS TO 500k🎉🎉

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

    Kunal your open source course when start

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

    Great Playlist

  • @jk-sm6qr
    @jk-sm6qr 10 місяців тому +1

    Thank you so much

  • @mrvjl9519
    @mrvjl9519 7 місяців тому +1

    these videos are so meaningful those who don't have a proper mentor . Hope you won't follow the money minded youtubers in future also 🤗.

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

    amazing explanation

  • @067_subharajmishra8
    @067_subharajmishra8 Рік тому +3

    Consistency Graph just went Berserk.
    💯

  • @RitikRai-dz4mo
    @RitikRai-dz4mo Рік тому +1

    thanks bhaiyaa🤩🤩🤩🤩

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

    next level content

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

    will need a lot of practice for this

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

    awesome segment tree video :>

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

    Great video!!

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

    excellente content

  • @YS-mo2wh
    @YS-mo2wh Рік тому +2

    The open source course u talkin about....willl it come?

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

    Hi Kunal, I hope you'll soon upload the Dynamic Programming, Graphs playlist. Please please, please

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

    Nice lectures good

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

    Thanks kunal for this course

  • @hridyeshhh
    @hridyeshhh 11 місяців тому

    thank you Kunal for this :)

  • @KhushiSingh-ft8dk
    @KhushiSingh-ft8dk 5 місяців тому

    Thank you so much sir....😄😇

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

    Thank you Kunal🙂

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

    Kunal bhai dynamic programming krva do please ❤

  • @AyushSingh-hc3pj
    @AyushSingh-hc3pj 10 місяців тому +1

    thanks understood algo but takes one more time to go through the code to understand.

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

    Thank you Kunal

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

    Kunal bhai, waiting for the questions video on trees

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

    Thank you kunal❤

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

    Thank you so much !

  • @mohammadkaif2325
    @mohammadkaif2325 Рік тому +2

    Kunal is back🔥

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

    1:04:44 bro plz check your code u are making the methode return int and it is void ,,,, replit does not show the syntax error plz go back and write on itllij

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

    if it takes around O(N) to build, wouldnt it make more sense to build a prefix array so that we can retrieve the answer in O(1) time?

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

    16:26 is this a full bt not complete binary tree?

  • @drex-0299
    @drex-0299 Рік тому

    Amazing lecture!

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

    loved it❤

  • @updownftw
    @updownftw 11 місяців тому

    thanks for the video

  • @textrovertofficial
    @textrovertofficial Рік тому +4

    First of all thank you for your contribution bhaiya , Second how much time will you take to cover this playlist ?❤️

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

    Thank you so much❤

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

    believe me guys Kunal is really back ❤❤🎉🎉

  • @NavneetKumar-lg3nv
    @NavneetKumar-lg3nv 7 місяців тому

    loved it

  • @zoomgy
    @zoomgy Місяць тому

    25:42 that grin you held hehe

  • @funkyboy4882
    @funkyboy4882 10 місяців тому

    Enjoying dsa now

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

    Thank you kunal

  • @AyushRaj-zx5ev
    @AyushRaj-zx5ev Рік тому +1

    Kunal ,can you please cover hashmap and tries data structure with interview question as well.

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

    THANK YOU!

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

    Ohoo consistency

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

    Mast👌

  • @noufal4035
    @noufal4035 Рік тому +2

    When open source course starts?

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

    Thankyou ♾

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

    thanks a lot my dear

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

    Please complete entire DSA

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

    thank you bhai for the video

  • @ChandraSekhar-ib7ff
    @ChandraSekhar-ib7ff Рік тому +4

    1k likes done on Twitter post wow 😲!!!!!