Preorder, Inorder and Postorder in 5 minute | Tree Traversal | Easiest and Shortest Trick
Вставка
- Опубліковано 4 лип 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 UA-cam: / 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
Legend is getting ready for tomorrow exam 😂 .. Right!?
Yes 😭
Yes brdr 😂😂😂😅
Yes bro 😢
And ultra legends are ready for today's exam 😂😂
Y so related😂
5 mins is much better than 4hrs class lecture 😌
us bhai us
😂 fact
1+
Agreed👍👍
Really
Bro Dropped The Coldest Explanation Without Giving us Blanket 🥶
🗿
रियल
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 🌸❤️
this guy deserves oscar for explaining this clearly
Oscar is for acting not teaching LoL
100% bhai , sir ki ye ek video ne mera half chapter complete ✅ kr diya.
Love you much sir.🙏🙏
If there's one video on the internet that saved my life, it is this! Thankyou.
Yes bro same
Same..
It's 1 AM right now and tomorrow I have exam 😂
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
aapke charan kaha hai sarkaar .......................... i just have ONLY ONE QUESTION WHY THIS GUY IS STILL UNDERRATED 🤔
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. 🙇🏻♂
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😇
Thank you so much Vaibhav..lots of blessings
@@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! 😊
thnku vaibhav and sir for your guidance,i am really thankful ❤
@@GurpreetSingh-ot3pw Arre, Maine to kya hi kiya🤣🤣
@@vaibhavsood5713 hm u r laughing to much
None of the youtuber cleared this topic as of you
This technique needs an Oscar❤
Much needed before one day of examination
Thanks alot
i freaking love you man. What a charismatic teaching style. Got it before the video even ended. LEGEND
Give this Sir an Oscar for this trick
Most efficient way to get inorder,preorder,postorder traversal👍👍
Yes Agreed buddy!!!!
🏅🏆
Bro oscar is given to acting not for teaching 😂
i am so grateful for this , it's wonderul and 100% efficient in any kind of question. thankyou so much sir !
i love you
plz reply me
I watched this trick 30 mins before exam and got it right! Can't say enough thank you🤗🥺
Maja aagya sir .... Aapne mera 2nd semester aasaan bana diya ....learning microprocessors as well from this channel ❤❤
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!!!!🔥🔥🔥
True aasani se sikhaya sir ne 🙏
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 .....
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 :)
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
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
This was so good. I will never forget this concept ever again!!!
I have seen the video before 20 minutes of my exam and got common and secure 2 MCQ from this!!!
Again Thanks a lot!
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.
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.
this technique is really good and the way you deliver concept to us is just... really speechless. U deserve huge huge respect. commendable
I usually don't comment on education channel but this explanation was amazing,Very simple and clear.
Thank you so much sir
May God bless you with millions of subscribers.🥰
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. 😄
🤣🤣
@@nidhikurra7844 hlo
Now that is a technique I've never seen before, thank you! It's very helpful.
Legend is learning this in examination hall !
Thank you so much for explaining our 2 hours long lecture in just 6 minutes very clearly.
Respect you sir soo much. You should be awarded for the best teacher.
🤓
what an excellent teaching after seeing your classes i just search for you in every concept
Thank you so much, sir. This technique helps a lot.
wow, super helpful for us visual learners! really appreciate the help, thanks so much!
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!!
This legend is born to make life easy
I wish we had you as a teacher in our college , thank you so much sir 🙏
Simply superb technique! Hats off to you for simplifying to the simplest possible level 👋👋👋👍👍👍👌👌👌
EULER'S TRAVERSAL KA NAAM SUNA HAI 😂
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 💖
Is this there in 3rd sem also
Iam in 2nd sem bca i have it now also 😔🥲
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 !
Such a great approach, SIR ,it really saves time while written all 3 traversal.❤
best technique ever
I understood at one time
thanks sir .
❤️❤️ Sir you deserve award for clearing our doubts ❤️❤️
The best lecture video ever made. You deserve an award
INSANE!! I watched several videos on traversal of trees,this is the best one!
Thank you so much for such an amazing technique sir.... You are doing an incredible work for computer science students
God bless you....
Amazing man... It really helped me in my ISC board computer
The best trick ever came across. A big thank you Varun!
This was soo easy to understand
Now I feel confident enough with tree traversing
Me watching just before 15 min of exam😅
OMG thats the easiest and shortest way really! Thank you so much! Continue the good job!
Greetings from Greece!
Best solution i have seen for preorder,inorder and post order!
YOU ARE THE BEST LITERALLY THANK U SM COULDNT GET BETTER EXPLANATION THAN THIS U ROCK!
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
awesom trick, after seeing this trick,we will never forget preorder....thanku so much sir,for ur guidance and hard work
Mera ek problem solve krke dhogi kya
Yahi pre order in order ka
10 वर्ष हो गए बीटेक में इसे पढ़े हुए, आज जाके ये एकदम रापचिक, शानदार तरीक़े से समझ आया 🤠😍🙏 दिल से शुक्रिया सर जी आपका 🙏🌱🎋
Amazing trick...👏❤ thank you so much sir
Superb!!! I had never understand that topic entire my btech...now i got this... thanks
Thank You for your love and support. Bless you
Exactly same 😂
thankyou so much..This is the easiest way to learn this traversal techniques
the way you explained it that's amazing
Thankkkk uuu soon muchhh...❣❣❣
It's my exam tomorrow and I just confused but your 5 mins made it very clear..🙌
Galgotias??👽
legend see before the 1day of exam..................
me before 3 hours of exam
@@lovekushsinghgurjar4875 I am watching before 1 minutes 😅
really great explanation. Made the tough one very simple. Grateful to you.
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,..... ☺
Thanks and welcome
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.
Thank you mrunal Mane for such a lovely feedback..
THE BEST Traversal video on UA-cam !! 🫡
U made my worry ease... Heartiest thanks to u.
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 😊
Thank you very much sir..
Kal mera semester exam h
Thanks a million
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🙏
All the best
Thank you sir 🙏....with regards your virtual student
Sirrrrr this is the best method i watched other videos but didnt understand but you saved the dayyyyyyyy
The word genius is actually made for you sir... God Bless you.. Keep up the good work... Thank you so much
Amazing 🤩
how can someone dislike this video 2 minute of silence for them
I guess they got years in their eyes and misclicked it
its bot dislikes it is youtube's algorithm to have a balance between likes and dislikes
love you sir...ek bar me hi smjh aa gya ...iske phle bht sari videos dekhi thy but aapka ek video batty jala diya 😅❤️❤️❤️
Khatrnaak technique hai
Kis kis layer per kon kon se protocol use hote h g ... Ye video bhi Bana deejiye sir g .... Please please
Thank you for this technique it makes ordering of nodes really simple
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.
Welcome polytechnic boys 😅
All the best for tomorrow's exam 🎉
Before 1 hour of exam 😂😂😂😂
Me😂
😅@@VivekKrDev
Same bro subha paper h😂
Mind Blowing Explanation
What an amazing video
👏👏👏
What a trick bro , NO confusion...!!🥰
Not sure if its trick or method but you made it really easier 😂
Its actually a trick. Not the method. 🤔
Thankas a lot sir... I was confused in this topic from many days, but now I understand at once through your good explaination..
Sir you really deserve a award for explaining this topic in an easy way❤
Saved my precious time! Thank you sir
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
So beautiful, so elegant, just looking like a wow... Explanation superb sir😊😅
Your teaching style is so amazing ❤❤❤❤
It helped me to give answers using a proper method... Thanks a lot👍🏻
Teaching skills he have is just too good🤗
You actually deserve a lot 🎉....tq sir 🙏 i understand my every doubt from your lecture
one of the best understanding platform , thanks sir
This man has my whole heart ❤️
Excellent...thank you so much for teaching this
Sir,you deserve Massive respect 🙏
Really sir aapki jitni tareef karenge utni km h 😊 every topic become very easy after watching your videos