3 years ago I got job offer from Amazon because of this video, thanks Tushar.
@aviralagarwal58715 жыл бұрын
In which order did you start doing things for competitive prgramming?
@uneebagha46335 жыл бұрын
Hi Emin
@hawktomnia0075 жыл бұрын
Amazon now asks such hard question?
@shanugarg84284 жыл бұрын
Hey all, if anyone C++ coder here, then do checkout : kzbin.info/www/bejne/gaurmouXpMSkars
@tusharchouhan96064 жыл бұрын
good bro i know i helped many
@AnkitSharma-dx5yy3 жыл бұрын
I don't really know why people do not recommend this guy's videos. This is such a gem of a channel
@phychematogy90312 жыл бұрын
bcz he explains complex topics and most the people keep sticking to the easier ones. But if anyone is learning complex things they already know him. TUSHAR OP🔥🔥🔥
@roh99347 жыл бұрын
You are one of the best Teachers in the world of CS.Can easily take down Highly rated Professors.
@DenisG6318 жыл бұрын
The BEST! I tried to understand the segment tree explanation from wiki and code forces but I just didn't get it. You made it so easy to understand!!! Thank you!
@nvjrane Жыл бұрын
I used to think segment trees is some abstract concept. You have made it so easy. Thanks a ton!
@TheGamerGuy2017 жыл бұрын
i love how you always explain the recursion as well with a well labeled table...makes things very easy.
@amritjha28024 жыл бұрын
Amazingly explained!! Clearly, the best introductory video available on segment trees as per me. Thank you Sir!
@oshogarg52156 жыл бұрын
best explaination of segment tree on KZbin, we need people like you.
@killerthoughts61506 ай бұрын
the only man on the internet to nail this explanation
@anyu81098 жыл бұрын
You got a talent of teaching. I have watched your video for kmp and segment tree, and you explained so clearly and so easy to understand.
@nguyenhunginh8560 Жыл бұрын
there is a language barrier between me and him , but with a little help from gg translate , it is easy to understand the algorithms .I love this guy.
@jahirulislammonir34908 жыл бұрын
My heartiest thanks to you man,,, Your recursion explanation is one of the finest part of this video... Carry on :)
@shashankrajholavanalli28687 жыл бұрын
Awesome job. Very well done. Never seen a recursive function explanation so precise.
@sammy-zo6sl5 жыл бұрын
I have improved my coding a lot from your videos. Keep up the great work
@gauravjha65547 жыл бұрын
Best Video on Segment Tree....I understood the concept so clearly just because of you...Thanks you so much Sir
@pranavganorkar23799 жыл бұрын
Best video in KZbin on Segment Tree...Understood it Perfectly...!!! Many thanks.....
@anhadsingh46099 жыл бұрын
+Pranav Ganorkar Very true.
@EalhamAlMusabbir8 жыл бұрын
+Pranav Ganorkar Yes... best video in KZbin on Segment Tree.... :) And thanks a lot for ur effort , sir...
@vishalsheth18889 жыл бұрын
Best explanation! I will join the chorus to request a video on lazy propagation techniques.Lots of competitive programmers will appreciate it!
@naughtyrishan9 жыл бұрын
Thanks a lot. Please keep uploading such videos. You help many. Your explanation along with the codes line by line really helps a lot in actual implementation. Thanks again.
@S4EProductions8 жыл бұрын
Many thanks for this, great and easy to understand explanation, and everything was very well-made, including subtitles and everything else. Thank you for helping us, expecting nothing in return. Cheers
@adityak15119 жыл бұрын
Great explanation Tushar! You're helping a lot of people here... Keep up the good work!!
@priyanksingh68185 жыл бұрын
AMAZING!!! I was struggling how to implement trees on questions and you made it clear in single vedio.
@abhaypatil20004 жыл бұрын
tbh implementation for trees and segment trees are very different. Seg tree -> vector/array and tree -> class/ structure
@bedapudisrinivas8523 жыл бұрын
This video made 6 years ago and this video came first when i search about segment tree. Content matters
@ihatesaturn694207 ай бұрын
Kindest regards to you sir, I’ve been having much difficulty understanding this concept. Thank you so much!
@vinayak_987 жыл бұрын
this is beyond the doubt...one of the most beautiful explanation for a segment tree..thanks!
@AlexandrBorschchev Жыл бұрын
This guy is flawless in teaching!
@huawu87066 жыл бұрын
Thanks, Tushar, you always give us a very detailed explanation.
@avinashchaurasiya64972 жыл бұрын
Amazing video, clear to the point and the way you explain recursive calls is impressive. Thanks.
@apam54327 жыл бұрын
Hey there is an issue in the explanation, at 25:55, where u take value 4 from leaf, which should actually be 2. Other than that explanation was really great. Thanks for creating these videos
@a7medoka8 жыл бұрын
You have no idea how happy i am after seeing this video someone explained this to me and i didn't understand a thing , but you really made it simple , thanks a lot . I guess I will be visiting your channel quite a lot :)
@codeeasy8553 жыл бұрын
You have some really great videos Tushar. This is the best explanation from an implementation point of view. Thanks!
@algorithmimplementer4155 жыл бұрын
You are amazing! The way you built the tree and explained - just amazing!
@prateeksoni22944 жыл бұрын
one easily see the effort behind this wonderful video. Thank You. Really helpful
@varuntanmay218 жыл бұрын
Awesome exposition of this interesting data structure. I think it could n't have been better. -> You explained motivation for this ds. -> Cost of creation in terms of time, space complexity. -> Detailed algo with illustrations. Your approach shows how well you understand this ds.
@ashishdey94298 жыл бұрын
Excellent. Brilliant way of explaining recursion. You are the man dude (Y)
@iamdipankarj9 жыл бұрын
Thank you! I was struggling with segment tree till now.
@dmitrykoval5613 Жыл бұрын
great explanation, thanks a lot. the only thing I'd like to point out is the way the middle element is calculated. Instead, I would count it like this (high - low) / 2 + low
@harrygray6770Ай бұрын
I was told to watch the video again if i didnt get the 4n requirement so i watched again and got it. 🙂
@SatyanarayanaBolenedi8 жыл бұрын
Good one!! I like the way you explained, how to construction segmentTree with the help of tabulation. Tushar.. you are Awesome!!
@alok6969694 жыл бұрын
Thanks a lot Tushar for creating these videos !!! Really helps in clearing out the concepts while preparing for interviews.
@realstory58182 жыл бұрын
thanks bro realy helped me to prepare for olympics
@Nerraruzi8 жыл бұрын
Outstanding presentation, very clear and accessible!
@Sushil28744 жыл бұрын
I mean this is the best explanation that i can get of this..!! Thank you so much for such great explanation..!!
@marwanalaa39629 жыл бұрын
It is very helpful and it is great to explain a recursive function till the end. thanks a lot :)
@ankishbansal4205 жыл бұрын
Thanks tushar, you are legend in ds/algo. I struggle with this entire day, but you made my day. Thanks
@sridevip.v.42432 жыл бұрын
Tushar thankyou😊😊😊you made the concept so easyyy
@meganlee58977 жыл бұрын
Several interesting points related to segment tree worth chewing 1) how to calculate a ceiling number of power of 2. 2) why exactly worst case is 4 times lgn 3) how to do updates of the tree corresponding to update/append/deletion in original array
@briankarcher83383 жыл бұрын
I know it's 4 years late, but any update to a segment tree requires a recreation of the tree since the aggregates get changed up the tree. (which is O(n) time).
@uditkaushik8 жыл бұрын
Sir your lectures are just amazing ,the way in which you explain things makes me feel BETTER :P . Sir I have a request please upload a video on maximum sub array problem using segment tree. I'll be highly obliged to you !! Thanks sir :) !!
@AkshayAradhya9 жыл бұрын
WOW Thank you so much.Your resources really help me better at programming competitions
@namanrastogi45015 жыл бұрын
nice work. keep doing such videos on competitive programming.
@shobhitsrivastava44965 жыл бұрын
You are great, man may god bless you. your deserve a lot more subscribers!!
@rajeevkumaryadav40468 жыл бұрын
that's the dought I had rest the videos you put on are too good and helpful.thank you
@mojahidislam97179 жыл бұрын
it was a great video..i was looking on d internet regarding segment tree but no one has explained it better than u particularly d way u explain your code....Sir,if u could put videos on other topics which r necessary for competitive coding as it is difficult to get those contents on internet.. please put videos on how to solve problems on greedy concepts and other algorithmic concepts if possible by taking some problems of spoj ...
@anoohyabollampally97335 жыл бұрын
Excellent , understood in the very first go. Thanks.
@kaivanmehta57712 жыл бұрын
Amazing explanation, please cover updating a segment tree. Thanks!
@dhiaeddinegharsallah29239 жыл бұрын
Thank you so much dude ! I was struggling to understand Segment Tree until I have found your video ! I ow you a lot man ! You're awesome (y) (y)
@AmanSingh-wb9ev6 жыл бұрын
Nice video ..really helped me ..to write my first code in segment tree
@shivammittal7045 жыл бұрын
Really recursion is damn powerful, very well explained sir!
@KrishnaKumar-yn9wf3 жыл бұрын
But if used in production you get fired.
@balasahebdabhade30919 жыл бұрын
Thanks a lot sharing. Simple and best explaination of segment tree. It would be great if can share one video on Fenwick tree or binary indexed tree.
@AshishRawat-zl6te8 жыл бұрын
awesome video..great way to explain recursion for creation....really helped a lot....thanx......
Aaaah it makes so much sense now! Thank you for this great explanation!
@yashagrawal68508 жыл бұрын
at 25:11 you said it wrong when there is complete overlap and we return segTree[pos] where pos=4 and value is 2 so returning value should be 2 but you said it 4 !! Let me know if i m wrong.
@shivamlakhwara50805 жыл бұрын
I think you're right ....I also caught that in the first place he returned an index instead of a value.
@mikenguyen913 жыл бұрын
nice catch, I tried to add a comment but you already did.
@derpfaceonigiri49507 жыл бұрын
You're awesome sir, this helped me a lot in segment tree self studying :'D
@karthikmucheli79305 жыл бұрын
I just had this observation. The 2D matrix to find the min in an array is the segment tree if you consider top right corner as the root node.
@ManishKumar-zt5sk5 жыл бұрын
best explanation so far...
@vishalyadav-fy7mv6 жыл бұрын
Best explanation ever on segment tree
@shikharsubedi47036 жыл бұрын
thank you so much for such a thorough explanation. You got a new subscriber
@Bala-go6cc9 жыл бұрын
Video was awesome...but somewhat fast..It's great...bro..thank you..
@eavanshiarora8878 жыл бұрын
Cannot get a better explanation! Thankyou :)
@siddharthagarwal86629 жыл бұрын
Nice explanation of segment tree
@GoodgameMaster7 жыл бұрын
You're making the best tutorials! Thanks a lot!!
@parvezmulla33244 жыл бұрын
The Best I have ever seen about Segment Tree!
@deb2329 жыл бұрын
Sir, can you also explain 1. Suffix array 2. KMP 3. Flow problems 4. Maximum Bipartite matching You explain really well and they help me grasp the concepts. I ave been trying to wrap my head around these things for long!
@sankarpati55493 жыл бұрын
I scare to look into segment tree alg before watching this video . Thanks Tushar Roy
@chinmayrakshit98729 жыл бұрын
thanks sir your explanation is simple and auwsum.....helps me a lot for competitive programming... :)
@arhankundu25164 жыл бұрын
Thank you sir for this awesome explanation 😃
@firefox-zzz9 жыл бұрын
Easy to understand ,simple code... Thank you very much ! :)
@thexwines5 жыл бұрын
awesome way to explain recursion, thanks a lot sir
@soumyajitdutta4288 жыл бұрын
Awesome way of explaining..Hats of and thanx
@suniladitya10164 жыл бұрын
your explanation is amazing
@annafalvello81382 жыл бұрын
Your videos are so helpful, thank you!
@georgiossamaras50635 жыл бұрын
Awesome and laconic introduction of Segment Trees, thanks!
@hypernarutouzumaki8 жыл бұрын
Please post a video on Interval Tree ! Your videos helped me a lot !
@laraibanwar16185 жыл бұрын
Well my dear bro
@shaileshpandey56979 жыл бұрын
I really appreciate your contribution in increasing our knowledge. Can you please upload video on TRIE.
@remusvalentin0998 жыл бұрын
Thank you man, you are great at explaining stuff, keep em comming!!
@BipinOli908 жыл бұрын
Thanks for making this. You rock Tushar. You da man :)
@akshatb9 жыл бұрын
Wow I finally got it..Thanks man you are doing a really great job :)
@vidhansharma17876 жыл бұрын
best explanation of segment trees......
@ujjawalgupta53034 жыл бұрын
Thanks for this awesome explanation.
@ShounakKundu3 жыл бұрын
Even before algoexpert and scalar existed, this guy was the ULTIMATE GOD of DSA. Too bad he did not continue his channel. It is a humongous loss for us all.
@swetabjahazra80509 жыл бұрын
Best explanation, cant be any better..........
@SonuSonu-tk5pk7 жыл бұрын
A unique way of explaining recursion. Great video.
@thinhvu69023 жыл бұрын
Wow I love this tutorial, thank you so much!!!!
@pulkitgupta85757 жыл бұрын
tushar bhaiya ki jai ho jai ho ..... maza agaya
@ChristianESL5 жыл бұрын
You are amazing. Thanks for the explanation 👍😊
@depengluan72228 жыл бұрын
Awesome explanation! Thanks, Tushar!
@prasadchaudhari10017 жыл бұрын
I think in the video, the segment tree should have been made on a array length which is not a power of two so that people can also understand how other elements that are not been used are also not effecting the segTree array
@AbhimanyuKumar19927 жыл бұрын
Hi Tushar, Can you make a video on persistent segment tree. Your video is really awesome. I couldn't find any better explanation than this .. Thanks
@vikaskumarsherawat9 жыл бұрын
very informative video. Thanks Tushar. :)
@JENISONGRACIOUS5 жыл бұрын
Very detailed. If possible put up a video on Update value too.