Preorder, Inorder and Postorder in 5 minute | Tree Traversal | Easiest and Shortest Trick

Поделиться
HTML-код
  • Опубликовано: 30 июл 2024
  • 👉Subscribe to our new channel: / @varunainashots
    Pre-order traversal while duplicating nodes and values can make a complete duplicate of a binary tree. It can also be used to make a prefix expression (Polish notation) from expression trees: traverse the expression tree pre-orderly.
    In-order traversal is very commonly used in binary search trees because it returns values from the underlying set in order, according to the comparator that set up the binary search tree (hence the name).
    Post-order traversal while deleting or freeing nodes and values can delete or free an entire binary tree. It can also generate a postfix representation of a binary tree
    0:00 - Introduction
    1:35 - Complete the given tree
    2:23 - Basic technique
    2:54 - Solution with example
    ►Data Structure (Complete Playlist):
    • Data Structure
    Other subject-wise playlist Links:
    --------------------------------------------------------------------------------------------------------------------------------------
    ► Operating System :
    • Operating System (Comp...
    ►Database Management System:
    • DBMS (Database Managem...
    ► Theory of Computation
    • TOC(Theory of Computat...
    ►Artificial Intelligence:
    • Artificial Intelligenc...
    ►Computer Networks (Complete Playlist):
    • Computer Networks (Com...
    ►Computer Architecture (Complete Playlist):
    • Computer Organization ...
    ►Structured Query Language (SQL):
    • Structured Query Langu...
    ►Discrete Mathematics:
    • Discrete Mathematics
    ►Compiler Design:
    • Compiler Design (Compl...
    ►Number System:
    • Number system
    ►Cloud Computing & BIG Data:
    • Cloud Computing & BIG ...
    ►Software Engineering:
    • Software Engineering
    ►Design and Analysis of algorithms (DAA) (Complete Playlist):
    • Design and Analysis of...
    ►Graph Theory:
    • Graph Theory
    ►Programming in C:
    • C Programming
    ►Digital Logic:
    • Digital Logic (Complet...
    ---------------------------------------------------------------------------------------------------------------------------------------
    Our social media Links:
    ► Subscribe to us on RUclips: / gatesmashers
    ►Subscribe to our new channel: / @varunainashots
    ► Like our page on Facebook: / gatesmashers
    ► Follow us on Instagram: / gate.smashers
    ► Follow us on Instagram: / varunainashots
    ► Follow us on Telegram: t.me/gatesmashersofficial
    ► Follow us on Threads: www.threads.net/@gate.smashers
    --------------------------------------------------------------------------------------------------------------------------------------
    ►For Any Query, Suggestion or notes contribution:
    Email us at: gatesmashers2018@gmail.com
    #Preorder#Inorder#Postorder#DataStructure

Комментарии • 2,5 тыс.

  • @Mrlevelx
    @Mrlevelx Год назад +1675

    Legend is getting ready for tomorrow exam 😂 .. Right!?

  • @sailendraku.biswal3841
    @sailendraku.biswal3841 Год назад +1811

    5 mins is much better than 4hrs class lecture 😌

  • @ayushraut_07
    @ayushraut_07 4 месяца назад +76

    Bro Dropped The Coldest Explanation Without Giving us Blanket 🥶

  • @sajidmomin9206
    @sajidmomin9206 Год назад +140

    I am literally laughing , i am just thinking i have just wasted my mind and hours in classroom for understanding this concept which can be easily done through this logic 🤣 thanks a lot sir for this teaching 🌸❤️

  • @mohdsiddiq5752
    @mohdsiddiq5752 2 года назад +262

    this guy deserves oscar for explaining this clearly

    • @renots2323
      @renots2323 8 месяцев назад +5

      Oscar is for acting not teaching LoL

    • @vedbhensdadia
      @vedbhensdadia 7 месяцев назад +2

      100% bhai , sir ki ye ek video ne mera half chapter complete ✅ kr diya.
      Love you much sir.🙏🙏

  • @fathimahasnak3816
    @fathimahasnak3816 3 года назад +100

    If there's one video on the internet that saved my life, it is this! Thankyou.

    • @vareable646
      @vareable646 3 года назад

      Yes bro same

    • @namomishra1143
      @namomishra1143 3 года назад +3

      Same..
      It's 1 AM right now and tomorrow I have exam 😂

  • @Knowledgeprecious
    @Knowledgeprecious Год назад +178

    Never thought that tree traversal can be this much easy.... Amazing
    I wish I had known this technique earlier!!!
    But it's never too late

  • @user-me9xl6wc5w
    @user-me9xl6wc5w 4 месяца назад +16

    aapke charan kaha hai sarkaar .......................... i just have ONLY ONE QUESTION WHY THIS GUY IS STILL UNDERRATED 🤔

  • @ashvinshetty5582
    @ashvinshetty5582 3 года назад +88

    Give this Sir an Oscar for this trick
    Most efficient way to get inorder,preorder,postorder traversal👍👍

  • @sanatnaik7943
    @sanatnaik7943 Год назад +80

    I spent 1 hour in class trying to understand this but couldn't even solve 1 question. And now after watching this video for 5 minutes, I solved 5 examples in 10 minutes.
    I'm truly grateful to you for this video, sir. You are the best. 🙇🏻‍♂

  • @sanchibansode
    @sanchibansode 7 месяцев назад +14

    None of the youtuber cleared this topic as of you
    This technique needs an Oscar❤
    Much needed before one day of examination
    Thanks alot

  • @vedanshsingh8100
    @vedanshsingh8100 7 месяцев назад +4

    i freaking love you man. What a charismatic teaching style. Got it before the video even ended. LEGEND

  • @vaibhavsood5713
    @vaibhavsood5713 2 года назад +265

    Amazing method! Couldn't find an easier way of doing this! Btw this question is worth 10 marks in our university exam! 😂 And it's doable in 2 minutes using Sir's trick! It's amazing how his video is still helping people after 3 years! A huge round of applause for this amazing teacher 👏👏👏 He helped me with my DBMS subject as well! This comment is to tell him that not just GATE aspirants but college/university students watch him too! I guess majority might be us college students🤣 even though the channel name is Gate Smashers. Once again, a very great and helpful video😇

    • @GateSmashers
      @GateSmashers  2 года назад +44

      Thank you so much Vaibhav..lots of blessings

    • @vaibhavsood5713
      @vaibhavsood5713 2 года назад +10

      @@GateSmashers Thank you, Sir! ❤
      Me and my friends watch you a lot! We're doing BCA (2nd Sem exams getting over and looking forward to 3rd Semester)
      If you'd like to give any useful suggestions to us, It will be amazing! 😊

    • @GurpreetSingh-ot3pw
      @GurpreetSingh-ot3pw 2 года назад +2

      thnku vaibhav and sir for your guidance,i am really thankful ❤

    • @vaibhavsood5713
      @vaibhavsood5713 2 года назад +3

      @@GurpreetSingh-ot3pw Arre, Maine to kya hi kiya🤣🤣

    • @animesh_6969
      @animesh_6969 2 года назад

      @@vaibhavsood5713 hm u r laughing to much

  • @jainamchheda
    @jainamchheda 2 года назад +109

    THIS IS THE BEST VIDEO TO LEARN TREE TRAVERSALS. I WAS STRUGGLING A LOT IN IT INITIALLY. BUT, AFTER WATCHING SIR'S EXPLANATION I LEARNED IT EVEN BEFORE 6:46 MINUTES!!!!🔥🔥🔥

  • @thisisashi2498
    @thisisashi2498 4 месяца назад +4

    I watched this trick 30 mins before exam and got it right! Can't say enough thank you🤗🥺

  • @pinterare
    @pinterare День назад +1

    I always study through books and mostly avoid RUclips lectures but idk how i searched for this and got the simplest technique ever😍

  • @rashikale3791
    @rashikale3791 3 года назад +240

    i am so grateful for this , it's wonderul and 100% efficient in any kind of question. thankyou so much sir !

  • @sanatahir4658
    @sanatahir4658 2 года назад +18

    i have no words to explain how good you are.... today my final exam at 3:00 pm. and I am preparing just 2 hours before exam ,,, you are AWEESOME TEACHER ... Sir huge respect for you from Pakistan .....

  • @SlayMx_Sg
    @SlayMx_Sg 2 месяца назад +3

    Maja aagya sir .... Aapne mera 2nd semester aasaan bana diya ....learning microprocessors as well from this channel ❤❤

  • @HamzaKhan-ep9qc
    @HamzaKhan-ep9qc 6 месяцев назад +2

    sir this trick is soo genius awesome, my teacher spent 1 hr. explaining this yet couldn't convey the message properly.
    its the second time i am watching this video and i am realizing that this is easier than i thought. thankyou soo much sir :)

  • @arshidwani6876
    @arshidwani6876 5 лет назад +62

    Ur work is appreciable..U deserve much love and respect...Sir I request ur good self that when you will upload the videos of Algorithms and TOC....plz do reply sir...keep up ur hardwork...love from Kashmir

  • @awwnuraaagggg
    @awwnuraaagggg 3 года назад +10

    This was so good. I will never forget this concept ever again!!!

  • @Desmond113
    @Desmond113 6 месяцев назад +3

    love you bro, it was so hard to me to understand this concept, but after watching this video my all doubt's are clear , i cant even express my felling, Thanks

  • @MuhammadRaqiburRahman
    @MuhammadRaqiburRahman Год назад +6

    I have seen the video before 20 minutes of my exam and got common and secure 2 MCQ from this!!!
    Again Thanks a lot!

  • @snehalbamble7694
    @snehalbamble7694 4 года назад +74

    Great trick!!!
    never thought it could be done in such a simple way when I was student,😉 I wish I had got this at that time. 😄

  • @NehaSharma-lr8ej
    @NehaSharma-lr8ej 3 года назад +10

    this technique is really good and the way you deliver concept to us is just... really speechless. U deserve huge huge respect. commendable

  • @sambedansahooridul1237
    @sambedansahooridul1237 6 месяцев назад +13

    legend see before the 1day of exam..................

  • @Ayush60722
    @Ayush60722 7 месяцев назад +11

    Me watching just before 15 min of exam😅

  • @rishi71095
    @rishi71095 Год назад +3

    Wow, this 7 min video just knocked it out of the park for me! Best video for traversals made ever! Thank you for this video.

  • @muhammadjawadaman4442
    @muhammadjawadaman4442 2 года назад +18

    Respect you sir soo much. You should be awarded for the best teacher.

  • @GNESHRWT
    @GNESHRWT 5 месяцев назад +2

    I'm truly grateful for your clear explanations! Your videos have been incredibly helpful in breaking down complex concepts. Thank you for sharing your knowledge and making learning so enjoyable.

  • @lordsnow-vg6ek
    @lordsnow-vg6ek 8 месяцев назад +2

    This legend is born to make life easy

  • @apadogwaenchana9036
    @apadogwaenchana9036 3 года назад +6

    Now that is a technique I've never seen before, thank you! It's very helpful.

  • @GeekyGrape
    @GeekyGrape 3 года назад +4

    wow, super helpful for us visual learners! really appreciate the help, thanks so much!

  • @harshitsharma1905
    @harshitsharma1905 Год назад +12

    Thank you so much sir
    May God bless you with millions of subscribers.🥰

  • @yugandharajagtap5380
    @yugandharajagtap5380 7 месяцев назад +4

    Legend is learning this in examination hall !

  • @sandeepmandrawadkar9133
    @sandeepmandrawadkar9133 5 лет назад +36

    Simply superb technique! Hats off to you for simplifying to the simplest possible level 👋👋👋👍👍👍👌👌👌

    • @vinayak186f3
      @vinayak186f3 3 года назад +1

      EULER'S TRAVERSAL KA NAAM SUNA HAI 😂

  • @schopenhauerr
    @schopenhauerr 2 года назад +5

    Thank you so much for explaining our 2 hours long lecture in just 6 minutes very clearly.

  • @anwayaar
    @anwayaar Год назад +13

    Thank you so much, sir. This technique helps a lot.

  • @praniltamgadge595
    @praniltamgadge595 Год назад +9

    best technique ever
    I understood at one time
    thanks sir .

  • @user_abhigupta
    @user_abhigupta 2 года назад +10

    Just after 1 hr my 3rd semester BCA examination will start and I'm so confident after watching this amazing way of finding order
    Thank you so much sir 💖

  • @RishiRaj-lz5wk
    @RishiRaj-lz5wk 3 года назад +8

    Sir u r a genius 💯😎😎!! Nvr thought tht this can b done in sch a simple way...my exms r near & m preparing fr it..grt tym 2 wtch this video 🤩..Hatsoff 2 u sir!!

  • @user-do1ro5eq6w
    @user-do1ro5eq6w 6 месяцев назад +1

    what an excellent teaching after seeing your classes i just search for you in every concept

  • @user-kl6dp6oe7d
    @user-kl6dp6oe7d Месяц назад +1

    I usually don't comment on education channel but this explanation was amazing,Very simple and clear.

  • @user-ic1zf6on9j
    @user-ic1zf6on9j Год назад +5

    I wish we had you as a teacher in our college , thank you so much sir 🙏

  • @akshaysav5547
    @akshaysav5547 3 года назад +4

    Thank you so much for such an amazing technique sir.... You are doing an incredible work for computer science students
    God bless you....

  • @AnandRaj-ve7nf
    @AnandRaj-ve7nf 5 месяцев назад +1

    Such a great approach, SIR ,it really saves time while written all 3 traversal.❤

  • @Prem.s51
    @Prem.s51 Год назад +4

    Amazing man... It really helped me in my ISC board computer

  • @SEEMAVERMA-co6wp
    @SEEMAVERMA-co6wp 5 лет назад +5

    Superb!!! I had never understand that topic entire my btech...now i got this... thanks

    • @GateSmashers
      @GateSmashers  5 лет назад +2

      Thank You for your love and support. Bless you

    • @preyas2198
      @preyas2198 3 года назад

      Exactly same 😂

  • @Blackbenstudios
    @Blackbenstudios 11 месяцев назад +2

    The best lecture video ever made. You deserve an award

  • @commanderyadav564
    @commanderyadav564 Месяц назад +1

    Ohh ! Thank you so much sir. I was stuck at this concept for quite a while, but your easy and simple explanation cleared all my doubts. Thank you once again !

  • @avanideshmukh2650
    @avanideshmukh2650 5 лет назад +4

    awesom trick, after seeing this trick,we will never forget preorder....thanku so much sir,for ur guidance and hard work

    • @kishorebardhan3016
      @kishorebardhan3016 3 года назад

      Mera ek problem solve krke dhogi kya
      Yahi pre order in order ka

  • @gunasanimounika6784
    @gunasanimounika6784 5 лет назад +4

    Tq u sir..... Please add more videos on data structures.. It will be helpful... U way of teaching was good... Whenever I listen to your video it is easy to understand

  • @nirjalashrestha1685
    @nirjalashrestha1685 10 месяцев назад +2

    thankyou so much..This is the easiest way to learn this traversal techniques

  • @macaaamala
    @macaaamala 11 месяцев назад

    YOU ARE THE BEST LITERALLY THANK U SM COULDNT GET BETTER EXPLANATION THAN THIS U ROCK!

  • @Cristiano_Ronaldo2023
    @Cristiano_Ronaldo2023 Год назад +3

    ❤️❤️ Sir you deserve award for clearing our doubts ❤️❤️

  • @iqrasadaf9580
    @iqrasadaf9580 3 года назад +5

    Amazing trick...👏❤ thank you so much sir

  • @MAHESHACADEMY
    @MAHESHACADEMY Год назад

    10 वर्ष हो गए बीटेक में इसे पढ़े हुए, आज जाके ये एकदम रापचिक, शानदार तरीक़े से समझ आया 🤠😍🙏 दिल से शुक्रिया सर जी आपका 🙏🌱🎋

  • @nickbaib1839
    @nickbaib1839 5 лет назад +6

    OMG thats the easiest and shortest way really! Thank you so much! Continue the good job!
    Greetings from Greece!

  • @wondrous_autumn
    @wondrous_autumn Год назад +6

    Thankkkk uuu soon muchhh...❣❣❣
    It's my exam tomorrow and I just confused but your 5 mins made it very clear..🙌

  • @janhavipujare
    @janhavipujare Год назад +1

    This was soo easy to understand
    Now I feel confident enough with tree traversing

  • @allinone8363
    @allinone8363 7 месяцев назад +1

    Sur aap bhut hi easy tareeke se critical problems ko bhi easy way m samjhadete ho 😊 you are the God for the students who has not good faculty in our colleges😊

  • @khushboo7396
    @khushboo7396 3 года назад +4

    Thank u sooo much sir u made me realise that this concept is very easy and the way you taught is quite wonderful keep up the good work,..... ☺

  • @Everingo
    @Everingo 7 месяцев назад +19

    Before 1 hour of exam 😂😂😂😂

  • @tulas11
    @tulas11 Год назад

    The best trick ever came across. A big thank you Varun!

  • @laptoptoshiba520
    @laptoptoshiba520 9 месяцев назад

    INSANE!! I watched several videos on traversal of trees,this is the best one!

  • @mrunalmane3047
    @mrunalmane3047 4 года назад +11

    Thank you very much,sir. Finally I understood this concept by you. I watched many videos before but I learned here quickly and without any confusion.

    • @GateSmashers
      @GateSmashers  4 года назад +6

      Thank you mrunal Mane for such a lovely feedback..

  • @namomishra1143
    @namomishra1143 3 года назад +6

    Thank you very much sir..
    Kal mera semester exam h
    Thanks a million

  • @maryamsheikh4232
    @maryamsheikh4232 Год назад

    AP bht acha smjhaty ko Sachi sabhi lectures AP k leti hon itni achi tayyari hoti hai Mai Pakistan Sy hon hmary teachers tk AP ky lecture dakhty hai ...❤❤❤ .....har chez itni clearly define krty hai bht help hoti hai

  • @Liveinwinters
    @Liveinwinters 7 месяцев назад +1

    What a trick bro , NO confusion...!!🥰

  • @sarthakkumar8679
    @sarthakkumar8679 3 года назад +8

    how can someone dislike this video 2 minute of silence for them

    • @ashishshetty3512
      @ashishshetty3512 3 года назад +1

      I guess they got years in their eyes and misclicked it

    • @TechnoGaming_141
      @TechnoGaming_141 2 года назад

      its bot dislikes it is youtube's algorithm to have a balance between likes and dislikes

  • @pusaikumarm9165
    @pusaikumarm9165 2 года назад +6

    Literally today 20/04/22 at 9:30am I have my midterm exam ...I saw this content at early morning 5 am ... it was very helpfull ❣️... thank you much sir🙏

  • @KunalGaurav-zb4fy
    @KunalGaurav-zb4fy Год назад +1

    love you sir...ek bar me hi smjh aa gya ...iske phle bht sari videos dekhi thy but aapka ek video batty jala diya 😅❤️❤️❤️

  • @ghousekhan455
    @ghousekhan455 Год назад +1

    U made my worry ease... Heartiest thanks to u.

  • @mohammedyounus8264
    @mohammedyounus8264 2 года назад +3

    Amazing 🤩

  • @teetanrobotics5363
    @teetanrobotics5363 5 лет назад +3

    Khatrnaak technique hai

  • @ranabindumondal9301
    @ranabindumondal9301 Год назад +1

    THANKS FAR BETTER THEN COLLEGE LECTURE

  • @n.k.gamera.111
    @n.k.gamera.111 8 месяцев назад +1

    wow so easy to lurn. i last 1 hr to lurn this tree but not understand but you sir obstanding and so easy to why lurn this thank.😃

  • @Sudeshsorout
    @Sudeshsorout 5 лет назад +5

    Kis kis layer per kon kon se protocol use hote h g ... Ye video bhi Bana deejiye sir g .... Please please

  • @CreativityandfunwithAtharva07
    @CreativityandfunwithAtharva07 7 месяцев назад +4

    Welcome polytechnic boys 😅
    All the best for tomorrow's exam 🎉

  • @gamershouse6014
    @gamershouse6014 3 месяца назад

    really great explanation. Made the tough one very simple. Grateful to you.

  • @mrdeadpool1238
    @mrdeadpool1238 9 месяцев назад +1

    Sirrrrr this is the best method i watched other videos but didnt understand but you saved the dayyyyyyyy

  • @hassanjunaid1910
    @hassanjunaid1910 23 дня назад +4

    Who have the paper tomorrow legends attendance lgwao😅

  • @tuzenlaong1846
    @tuzenlaong1846 3 года назад +3

    Not sure if its trick or method but you made it really easier 😂

    • @adibahaque9202
      @adibahaque9202 3 года назад

      Its actually a trick. Not the method. 🤔

  • @user-bt4zs3hg6s
    @user-bt4zs3hg6s 4 месяца назад

    Thank you so much sir...
    It got me hours to understand and was confused .. But because of you I could understand it in a proper , simpler way 😊

  • @footballcricket18shorts..72
    @footballcricket18shorts..72 5 месяцев назад +3

    Is there anyone in 2024😂

  • @vertigo_57_42
    @vertigo_57_42 Год назад

    Thank you for this technique it makes ordering of nodes really simple

  • @user-me9xl6wc5w
    @user-me9xl6wc5w 6 месяцев назад +2

    bro proved that smart work is better than hard work

  • @codingball
    @codingball 3 месяца назад

    the way you explained it that's amazing

  • @user-rz3pi2er4r
    @user-rz3pi2er4r 7 месяцев назад +1

    Sir you really deserve a award for explaining this topic in an easy way❤

  • @allinone8363
    @allinone8363 7 месяцев назад +1

    Really sir aapki jitni tareef karenge utni km h 😊 every topic become very easy after watching your videos

  • @palakpreetdhiman7667
    @palakpreetdhiman7667 Год назад +2

    Thank you sir for making learning that much easy🙏

  • @vanshikayadav9571
    @vanshikayadav9571 Год назад

    Whooo kya samjhya hai apne matlab jo mujhe abhi kat samajh nhi aya vo apne sirf 5 min me samajh diya sir you are great

  • @sushilkumarsoni757
    @sushilkumarsoni757 Год назад

    Thankas a lot sir... I was confused in this topic from many days, but now I understand at once through your good explaination..

  • @jitendraparmar1153
    @jitendraparmar1153 Год назад

    thank you sir aapne muze yeh topic sirf 5 min me samza diay lekin college main muze isse sumuzne main bohot time laga tha. your concept is so easy and simple.
    thank you so much sir.

  • @sayanhalder8260
    @sayanhalder8260 Год назад

    Thank you so much sir.. it was really nice and much helpful for the students studying in universities or colleges, myself studing in a college affiliated under the University of Calcutta. Looking forward for this types of more videos from you.. ❤

  • @ashaybhojane
    @ashaybhojane Год назад +1

    Great sir. Thank you for the best technique

  • @naturemagic5
    @naturemagic5 Год назад

    The word genius is actually made for you sir... God Bless you.. Keep up the good work... Thank you so much

  • @lordseventh7
    @lordseventh7 Год назад

    moj la di bhai is lecture ne yaar ye sikhke dil khush ho gya bhaii. was very confused in this topic you just made me clear.

  • @shraddha429
    @shraddha429 Год назад

    Wow sir you are amazing.. The way of your explanation I just love it.. Don't stop teaching sir carry on we need you as a good teacher.