Simplest Binary Tree Traversal trick for preorder inorder postorder

This video lecture shows the simplest way to traverse a binary tree in preorder inorder and postorder. This trick can be applied even without pen and paper and you can determine the traversal order in just a matter of seconds. If you find any difficulty or have any query then do COMMENT below. PLEASE help our channel by SUBSCRIBING and LIKE our video if you found it helpful...CYA :)

Пікірлер: 739

  • @techdose4u
    @techdose4u9 ай бұрын

    🟣 JOIN our 𝐋𝐈𝐕𝐄 𝐢𝐧𝐭𝐞𝐫𝐯𝐢𝐞𝐰 𝐭𝐫𝐚𝐢𝐧𝐢𝐧𝐠 𝐩𝐫𝐨𝐠𝐫𝐚𝐦 through whatsapp query: +91 8918633037 🔴 𝐂𝐡𝐞𝐜𝐤𝐨𝐮𝐭 𝐚𝐥𝐥 𝐨𝐮𝐫 𝐂𝐨𝐮𝐫𝐬𝐞𝐬: techdose.co.in/

  • @stephank.murphy4874
    @stephank.murphy48742 жыл бұрын

    So in summary, always go from the root in counterclockwise direction around the tree. - For Pre-Order, print the nodes as you visit them for the first time. - For In-Order, print the nodes only when you visit them for the second time. - For Post-order, print the nodes when you visit them for the last time. Kudos man, that is succinct and sticks. Great job.

  • @eggieboyespillo2899

    @eggieboyespillo2899

    2 жыл бұрын

    Thank you!

  • @KrmzKod

    @KrmzKod

    Жыл бұрын

    Thanks for saving my time.

  • @ArunKumar-yb8np

    @ArunKumar-yb8np

    Жыл бұрын

    Thx 😊 🙏

  • @justusjonas11

    @justusjonas11

    Жыл бұрын

    This may be even faster in exams then the traditional way. Nice

  • @richardxue1506

    @richardxue1506

    11 ай бұрын

    Best CS tutoring video comment I have ever seen in my life. You are true god

  • @pieosaurus3
    @pieosaurus34 жыл бұрын

    2 different professors have tried to teach me this and I did not understand it. This 7 minute video explained it better and WAY faster than them. Thank you so much!

  • @techdose4u

    @techdose4u

    4 жыл бұрын

    Welcome :)

  • @TheLazyLemmon

    @TheLazyLemmon

    3 жыл бұрын

    @@yutaitadori7318 relax brother

  • @rawmetal3052

    @rawmetal3052

    11 ай бұрын

    ​@@techdose4uthank you for explaining. Albert Einstein once said if you can not explain something in simple terms, that means you have not understood the problem enough. You sir are clearly more knowledgeable than most profs

  • @nikolasioakimidis3003

    @nikolasioakimidis3003

    10 ай бұрын

    While yes, it's the fastest and easiest way, you don't really understand what's happening and why you are doing what you are doing. Don't get me wrong, this is an amazing video but every technique has its pros and cons

  • @RamprasadKaranth
    @RamprasadKaranth3 жыл бұрын

    You must be kidding ... You have successfully trolled all the professors out there .. This is a godsend !

  • @techdose4u

    @techdose4u

    3 жыл бұрын

    😂

  • @black_godfred

    @black_godfred

    3 жыл бұрын

    True. I said the same 😃 I have an exam in 4 hours time

  • @United_DNA

    @United_DNA

    3 жыл бұрын

    This is just theory dude!! The main part is how will you do this.

  • @sheikhaman6218
    @sheikhaman62183 жыл бұрын

    You have converted my 50 min class into 7 min dope session man❤

  • @techdose4u

    @techdose4u

    3 жыл бұрын

    😀

  • @ape8404
    @ape84044 жыл бұрын

    Super logical explanations. In-order was especially confusing for me but your strategy makes it super easy, thank you!

  • @techdose4u

    @techdose4u

    4 жыл бұрын

    Welcome :)

  • @s1cilian80

    @s1cilian80

    3 жыл бұрын

    Tech Dose, he directly fully conveyed my feelings of gratitude. Thanks

  • @keysersoze7919

    @keysersoze7919

    2 жыл бұрын

    Remember Inorder as DFS

  • @user-dn5pw1yw1h
    @user-dn5pw1yw1h4 ай бұрын

    These 7 minutes were the most productive 7 minutes i have ever spent on anything.

  • @BillboMC
    @BillboMC3 жыл бұрын

    The post order explanation was 🤯 GENIUS “has been reached for the third time” is the easiest logic ever

  • @techdose4u

    @techdose4u

    3 жыл бұрын

    Thanks :)

  • @aliazab5310
    @aliazab5310 Жыл бұрын

    3 years ago and still helping tons of people, thanks for this amazing explanation dude, you seriously rock! I'm definitely sharing this with my Uni mates.

  • @nosiphokhumalo656
    @nosiphokhumalo6563 жыл бұрын

    I think this is the third time I'm watching the video, have wrote tests without fully understanding this but after today I got it a 100 percent, the post-order was well explained thank you so much

  • @techdose4u

    @techdose4u

    3 жыл бұрын

    Welcome :)

  • @awad2226
    @awad2226 Жыл бұрын

    12 hrs before exam and I couldn't even understand this concept well. Really inspiring and helpful. Thank you so much :)

  • @AceYT69

    @AceYT69

    8 ай бұрын

    13 hours for me rn

  • @samarthgupta3280

    @samarthgupta3280

    Ай бұрын

    @@AceYT69 15 mins for me rn

  • @sanatani9273

    @sanatani9273

    26 күн бұрын

    1hour 30 minutes left for me run

  • @greenmatcha5226

    @greenmatcha5226

    7 күн бұрын

    3hours

  • @lukepacheco906
    @lukepacheco9062 жыл бұрын

    showing the null values under the leafs was really helpful and made me actually understand how each traversal algorithm was different, something my prof couldn't do, and in only 7 minutes! wow

  • @siddharthsubramanian4687
    @siddharthsubramanian46873 жыл бұрын

    This is strategy is so good. I don 't understand when just the concept is being taught, i only get the concept while explaining an example like this. TY.

  • @techdose4u

    @techdose4u

    3 жыл бұрын

    Welcome :)

  • @MKYEuphoria
    @MKYEuphoria Жыл бұрын

    Thank you for your simple straightforward approach. Took me so many videos to grasp these 3 traversals.

  • @jialincai1192
    @jialincai1192Ай бұрын

    Truly the simplest and most intuitive way that I've seen this topic explained. You're a godsend.

  • @phantomifyy
    @phantomifyy4 жыл бұрын

    Thank you so much! This was so easy to understand, and with the pattern, it can solve any problem!

  • @techdose4u

    @techdose4u

    4 жыл бұрын

    Yea 😁

  • @prajaktakadam4779
    @prajaktakadam47792 жыл бұрын

    Excellent teacher I ever saw in my Life....You save life of students who learning DS but didn't understand anything.Your trick will helpful for my placement exam.

  • @Peter.H___
    @Peter.H___2 жыл бұрын

    Thank you so much, because of you I'll end up passing my exam. This made what my lecturer was teaching seem so easy

  • @WilliamCWayne
    @WilliamCWayne9 ай бұрын

    Thank you for this excellent visualization! Including the null child trees really made all the difference!

  • @Sory_Bâh
    @Sory_Bâh7 ай бұрын

    This is great man, I have spent 4 hours in class without understanding anything but just within 7 minutes I got everything very well!

  • @idc20627
    @idc206272 күн бұрын

    Lmao, took dsa in my community college and now again at a 4 year just because its more rigorous at this school and I always come back to this video for traversals of binary trees, thanks for doing the lords work

  • @techdose4u

    @techdose4u

    Күн бұрын

    welcome :)

  • @antoinega03
    @antoinega03 Жыл бұрын

    Amazing video, was a perfect explanation for how the three traversals worked. Thank you!

  • @zakenmaru8612
    @zakenmaru86123 жыл бұрын

    This is fantastic, and I love how you explained the logic. Tyvm!

  • @techdose4u

    @techdose4u

    3 жыл бұрын

    Welcome :)

  • @a.rhythm9702
    @a.rhythm97023 жыл бұрын

    I really loved your method of approaching the graphs. It really is simple & easy to learn.... Thanks a lot :)

  • @techdose4u

    @techdose4u

    3 жыл бұрын

    Welcome :)

  • @PeterXyzdlv
    @PeterXyzdlv Жыл бұрын

    Thanks for this. The most natural and logical explanation one can get.

  • @LincyMcGabby
    @LincyMcGabby2 ай бұрын

    Been trying to understand these concepts for ages & failing to. This video helped me understand them easily. Thank you.

  • @ja25921
    @ja259212 жыл бұрын

    Best explanation I have seen so far. I'm ready for my final!

  • @claritydive
    @claritydive Жыл бұрын

    This is defiantly the best explanation I've seen so far.

  • @renasalp8695
    @renasalp86956 ай бұрын

    There is no complicated things , everything is clear and basic . Literally amazing ❤thanks for it 🙏🏻🙏🏻

  • @techdose4u

    @techdose4u

    6 ай бұрын

    My pleasure 😊

  • @johnsoneinstein8645
    @johnsoneinstein86452 жыл бұрын

    Thanks for this wanderful work that has set me free from understanding pre- order, in-order and post-order.

  • @boramawi
    @boramawi3 ай бұрын

    This is so simple! Yet most of the professors leave you confused after 3 hours of lecture!

  • @HateNoobsGR
    @HateNoobsGR2 жыл бұрын

    Actually amazing. I was trying to figure it out by myself and when I though I got it i realised I did everything wrong xD Thanks for this amazing method, super easy!

  • @ashiquerasul6928
    @ashiquerasul69284 жыл бұрын

    It's the most easy way to do it....great explanation ...Thanks alot sir 💞💞

  • @hetshah533
    @hetshah5336 ай бұрын

    Amazing method, you have converted 2 hrs lec in just 7 minutes!!!! thanks a lot sir :)))

  • @Batman72xxx
    @Batman72xxx4 ай бұрын

    This video is superb , especially for beginners !! I have been struggling with it so much and now I can just easily traverse a binary tree in just a few SECONDS

  • @richardxue1506
    @richardxue150611 ай бұрын

    Best CS tutoring video I have ever watched in my life.

  • @letsdoit6438
    @letsdoit64382 жыл бұрын

    Such an outstanding explanation Thank you for teaching it in the simplest way

  • @siyuanmeng443
    @siyuanmeng4433 жыл бұрын

    This is such a great video! Thank you so much for making this so clear!

  • @techdose4u

    @techdose4u

    3 жыл бұрын

    Welcome

  • @amberlin79
    @amberlin79 Жыл бұрын

    thank you so much for saving me hours of studying time. This guy is a genius.

  • @zaiiimo2882
    @zaiiimo2882 Жыл бұрын

    Saved me huge amount of time. Thank you for this!

  • @sirius1659
    @sirius16593 жыл бұрын

    Very easy and clear explanation. Thank u so much, man!

  • @Haraqu8984
    @Haraqu89847 ай бұрын

    You just cleared my concept in just 8 mins and for me it's crucial time because of having a quiz tommorrow of this topic hats off to you 👏

  • @alphakalo5231
    @alphakalo5231 Жыл бұрын

    Great explanation man, I can't believe I understood so quickly!

  • @nurunnajwa3462
    @nurunnajwa34622 жыл бұрын

    Thank you so much ! I finally understand how to solve the problems.

  • @somdattabasu2113
    @somdattabasu21133 жыл бұрын

    Thank you so much. I couldn't understand this and I was so scared. Now I have understood thanks to you. THANK YOU

  • @brandonfigueroa2800
    @brandonfigueroa280011 ай бұрын

    GREAT VIDEO! i love how you explain every step!

  • @yunqiyin5405
    @yunqiyin54052 ай бұрын

    The best video of presenting the traversal, thank soooo much

  • @elvissam1401
    @elvissam1401 Жыл бұрын

    This video is awesome, really helpful. I really like the way you explain the concepts so clearly

  • @chicoman264
    @chicoman2642 ай бұрын

    Thank you for this explanation, I finally understand now thanks to you. You are amazing at teaching.

  • @lavexitosh
    @lavexitosh5 ай бұрын

    The best explanation out there! Thanks.

  • @sosazo
    @sosazo2 жыл бұрын

    Super helpful for visual learners! Thanks!

  • @renzmichaelmanuel5023
    @renzmichaelmanuel50233 жыл бұрын

    Your tutorial was effective! I get it immediately, thank you

  • @techdose4u

    @techdose4u

    3 жыл бұрын

    Welcome :)

  • @vaishnavirao5413
    @vaishnavirao5413 Жыл бұрын

    I'VE NEVER UNDERSTOOD SOMETHING SO FAST

  • @carlav5285
    @carlav52852 жыл бұрын

    Such a great video!!! Thank you!

  • @filipbronola536
    @filipbronola536 Жыл бұрын

    This is super helpful, thank you!

  • @raves_r3177
    @raves_r31772 жыл бұрын

    Thank you so much. I could not really understand what was going on when my professor did it. But this trick is very logical and clever. Again thank you very much good sir.

  • @gowrisankarp56
    @gowrisankarp563 жыл бұрын

    Easy Explanation. You saved my life!!

  • @ardite3494
    @ardite34942 жыл бұрын

    Finally I understood. Thank youu and greetings from Albania

  • @rakshithahd7861
    @rakshithahd78612 жыл бұрын

    many have teached me this I haven't understood but in this 7 min video i have understood properlyy thank youu

  • @rahul19ify
    @rahul19ify3 жыл бұрын

    Mind blowing concept...I have seen many videos on this topic but none come as clear as yours.

  • @halfbakedbrownie
    @halfbakedbrownie2 жыл бұрын

    Dude! Keep doing what you do. Thank you so much! Hope your channel grows and you get crap ton of views!

  • @techdose4u

    @techdose4u

    2 жыл бұрын

    Thanks 😊

  • @itscelineliu
    @itscelineliu Жыл бұрын

    this was extremely helpful. thank you!!

  • @rohangosavi9686
    @rohangosavi9686 Жыл бұрын

    bro this has to be the easiest method to understand! thank you so much :)

  • @loveafinni
    @loveafinni5 ай бұрын

    Great explanation! Thank you!!

  • @Ramkumar-rd8vq
    @Ramkumar-rd8vq6 ай бұрын

    Bestest video so far on this topic.🧡

  • @ekkomanhighlights388
    @ekkomanhighlights3882 жыл бұрын

    bruh he makes it look so simple. thanks man

  • @divyanshchauhan1366
    @divyanshchauhan13662 жыл бұрын

    Really loved your method of reaching pre post and in order tranversal with graph... Superb👍👍

  • @angelochavez2085
    @angelochavez20853 жыл бұрын

    the way my professor taught us about this was so hard but yours was so much easier thank u so much

  • @techdose4u

    @techdose4u

    3 жыл бұрын

    Welcome :)

  • @vil3n80
    @vil3n802 жыл бұрын

    Best explanation I've seen. no ones mentioned on 1st, 2nd, 3rd reach. Clicked instantly

  • @bhuvanabhuvana6557
    @bhuvanabhuvana65579 ай бұрын

    Literally amazing u will explained in very simple manner and easy to understand thank a lot sir

  • @joeman677
    @joeman6778 ай бұрын

    I feel many professors try to dance around the simple way these traversals work and try to teach tricks on how to remember them like with post order being bottom to top (with left to right) but actually going over them in this simple demonstration helps much more.

  • @iamwithyou554
    @iamwithyou554 Жыл бұрын

    Amazing and mind-blowing trcik sir tqq so much for giving this lecture .no one said like you.we need a professor like you sir

  • @anjipi3846
    @anjipi38465 ай бұрын

    Thank you very much for that video. I didn't understand that topic during the lectures at my university, but now it's easy for me :)

  • @gofu9244
    @gofu9244 Жыл бұрын

    Super neat trick, thanks a lot man.

  • @richerops4419
    @richerops4419 Жыл бұрын

    You're the best. Thank you.

  • @leenalshouaibi9563
    @leenalshouaibi95633 ай бұрын

    Amazing video. Thank you!

  • @sara8M
    @sara8M Жыл бұрын

    This made my life easy!!!

  • @radu5011
    @radu5011 Жыл бұрын

    Very Good explanation! You helped me a lot! Thank you

  • @anjukrishnan5934
    @anjukrishnan59343 жыл бұрын

    Watched many videos.this is the simplest one. Thank you so much

  • @techdose4u

    @techdose4u

    3 жыл бұрын

    Welcome :)

  • @alevar46
    @alevar468 ай бұрын

    I loved this video, very well explained. I wish my professor would explain things as easy as you do!. ❤

  • @techdose4u

    @techdose4u

    8 ай бұрын

    Thank you! 😃

  • @theodosissarmadakis913
    @theodosissarmadakis9132 жыл бұрын

    THANK YOU SO MUCH THIS METHODS REALLY HELPED ME

  • @sohailamiri2704
    @sohailamiri2704 Жыл бұрын

    U made it so easy, thank you!

  • @techdose4u

    @techdose4u

    Жыл бұрын

    Welcome :)

  • @SpyerOff
    @SpyerOff Жыл бұрын

    thank you for the tutorial, very simple and very helpful !

  • @mdashfakuzzamanchy5218
    @mdashfakuzzamanchy52182 жыл бұрын

    WOW. Wonderful video, Sir. Thanks a lot.

  • @varunc
    @varunc3 жыл бұрын

    my 7 minutes well spent. thanks !

  • @malekharoun7340
    @malekharoun7340 Жыл бұрын

    you are such a legend, what a life saver!!!

  • @techdose4u

    @techdose4u

    Жыл бұрын

    Thanks :)

  • @alintdg9896
    @alintdg98963 жыл бұрын

    so simple , so on point , thank you !

  • @techdose4u

    @techdose4u

    3 жыл бұрын

    Welcome

  • @3o737
    @3o737 Жыл бұрын

    This is sooo helpful!

  • @chinonso_e
    @chinonso_e3 жыл бұрын

    This was really good and your method makes it easy. well done

  • @techdose4u

    @techdose4u

    3 жыл бұрын

    Thanks :)

  • @Whatthetrash
    @Whatthetrash Жыл бұрын

    THANK YOU SO MUCH! This is fantastic! :)

  • @hasanozdemir1067
    @hasanozdemir10672 жыл бұрын

    This is AWESOME! Thanks

  • @girishu
    @girishu4 ай бұрын

    the best vedio on utube for this topic

  • @MomenteRO
    @MomenteRO2 жыл бұрын

    Thanks so much! Commenting for the youtube algorithm and to show support!

  • @techdose4u

    @techdose4u

    2 жыл бұрын

    Welcome 😊

  • @victor_okpala
    @victor_okpala5 ай бұрын

    You are an excellent teacher. ❤

  • @sphemavimbela1652
    @sphemavimbela16523 жыл бұрын

    Wow i wish you were my teacher for all my computer science modules you make things easy to understand.

  • @techdose4u

    @techdose4u

    3 жыл бұрын

    Wish I had the degree :)

  • @ujjawalpugalia2123
    @ujjawalpugalia21234 жыл бұрын

    Thank you so much for this explaination it's very helpful I practiced so many questions after this and I got not a single wrong

  • @techdose4u

    @techdose4u

    4 жыл бұрын

    Welcome :)

  • @sharononea7097
    @sharononea70977 ай бұрын

    Thanks, man, it is easy to understand ❤

  • @erdemahsen
    @erdemahsen3 жыл бұрын

    That 2nd and 3rd time explanation was rly good. Thx bud

  • @techdose4u

    @techdose4u

    3 жыл бұрын

    Welcome :)

  • @tommyrp1341
    @tommyrp1341 Жыл бұрын

    Very good video! Thank you man

  • @saadarshad4635
    @saadarshad46358 ай бұрын

    MAN I LOVE YOU, THANK YOU