Binary Tree Bootcamp: Full, Complete, & Perfect Trees. Preorder, Inorder, & Postorder Traversal.
HTML-код
- Опубликовано: 1 фев 2019
- Code & Problem Statement @ backtobackswe.com/platform/co...
Free 5-Day Mini-Course: backtobackswe.com
Try Our Full Platform: backtobackswe.com/pricing
📹 Intuitive Video Explanations
🏃 Run Code As You Learn
💾 Save Progress
❓New Unseen Questions
🔎 Get All Solutions
Full Binary Tree: Every node (besides children) has exactly 2 children (the maximum children a node can have in a binary tree).
Complete Binary Tree: Every level, except possibly the last, is completely filled, and all nodes are as far left as possible.
Perfect Binary Tree: All interior nodes have two children and all leaves have the same depth or same level. Perfect binary trees are both full and complete.
Preorder Traversal: node left right
Inorder Traversal: left node right
Postorder Traversal: left right node
++++++++++++++++++++++++++++++++++++++++++++++++++
HackerRank: / @hackerrankofficial
Tuschar Roy: / tusharroy2525
GeeksForGeeks: / @geeksforgeeksvideos
Jarvis Johnson: / vsympathyv
Success In Tech: / @successintech Наука
Table of Contents:
A Quick Message 0:00 - 0:31
What We Are Going To Do 0:31 - 0:52
Full Binary Trees 0:52 - 1:38
Complete Binary Trees 1:38 - 2:14
Perfect Binary Trees 2:14 - 3:18
Let's Discuss The 2 Fundamental Traversals 3:18 - 3:42
How To Know Which Traversal Is Which 3:42 - 5:05
Think of Recursion Like This. 5:05 - 5:33
Preorder Traversal Walkthrough 5:33 - 11:15
Inorder Traversal Walkthrough 11:15 - 14:25
We Realize That This Is A Special Tree 14:25 - 15:07
Postorder Traversal Walkthrough 15:07 - 18:59
Briefly Addressing Time Complexity 18:59 - 19:22
Wrap Up 19:22 - 19:40
At 1:42 I meant that binary heaps are complete binary trees with the heap ordering property. Not that a complete binary tree is always a heap.
The code for the traversals is in the description. All recursive and basically the same function. We will do iterative and O(1) space traversals soon.
The ToC and video itself are perfect! The quality of information is phenomenal, I'm glad I kept digging for pre/in/post order examples until I found this! Thanks for taking the time to create this!
ye, for the internet yo
This guy is an amazing teacher.
i try :*)
Yeah for real I love his enthusiasm
Jesus Christ is God and is the only way. Hell is real whether you believe it or not
Omg writing "lnr" at each node really clear this up for me. Thank you!
nice
Ikr I loved that!
I am a software engineer for 2 years and I didn't know that. Let me go sell my degree ...
This channel is a shiny gem among a sea of low quality CS channels. Please keep it up.
haha, what a statement
*Ocean of low quality CS channels
Showing these traversal with a "n" saved my lllliiiifffffeeee!!!!
yuh
I've gotta say; I've worked at Amazon and Lyft, where you'd think people have their fundamentals down like crazy, but they can't explain simple topics like these. You, sir, have the gift of teaching. Thanks for your help!
sure
Your reaction to the cutting and the stomping sounds cracked me up! Great content man! You just got yourself a subscriber.
I always assumed this was a super complicated topic and have been putting it off as long as possible. You just made it so simple and easy to understand. Thank you. I think I just found my new favorite channel!
This video was amazing. I don't really comment on videos, but I had to express my appreciation to you for creating this. I got an interview about a month ago and this was the first of many videos I watched of yours while I was preparing. This past week I found out that I got the job and you were a big part of that. I'm not sure if you'll see this, but I hope you know that your videos have helped me and many others. Please continue to make awesome informational content like this!
This is amazing. One of the better CS videos. I love how you ask questions to test our understanding as we watch!
ye
I have watched dozens of similar videos, I can tell you, this guy is amazing. The way he provides the material is unbelievable, so motivated, so much energy, so much positive things can be felt.
thanks - this guy
Wow! the best video I have ever seen!. I have been trying to understand this for so long. No one really explained it in a format that made sense to me. This makes so much sense!. Thank you !!!
thank you for such a high-quality video. your explanation of "each node needs to execute the same policy" makes a ton of sense! never have i understood traversal so clearly until your video!
This is exactly what I needed! Thank you so much! You have no idea how hard the summer quarter has been with the lack of explanation.
nice - happy 4 u
This is the most fantastic, clear video I have ever seen on DFS traversals, thank you so much my dear angel!
This was really helpful. My university lecturer did a terrible job explaining this, but you managed to do it so succinctly and clear. Thank you!
The best traversal video till now. You teach using first principles. Hats off !
lnr at every node just made things so clear for me .....This is just amazing!!!
I've been struggling with data structures and algorithms, and this really made things a lot clearer, thank you so much!
great and sure
The way you explained the recursion is class apart!!! Also how to identify pre/in/post order. Hats off. Will now search for your video on graphs! Hope you have it.
Keep posting!
thanks and ok
Honestly, You did a wonderful job explaining this content! It was fun, easy to follow and understand! 5 Stars! I did watch all of it, and I shall continue too watch all your videos! You rocked it!
nice thx
Great stuff my friend! Way you use NLR, LRN, NRL is simply beautiful. Few minutes and I got to understand how binary trees are traversed! Thank you!
ye - great - sure
best explanation ive heard, very intuitive (I've previously gone through the topic in two separate modules and didnt really get it so this was great help)
I struggled with data structures and algorithms for 4 years. Watching your vids has helped me finally understand what's actually going on in layman's terms. Thank you so much for making these videos and keep it up!
ye, great
Quality breakdown. Simplified, easy to understand. Much gratitude! Man, even very easy means of memorization. Fantastic.
I never understood this in class, however after this video I've learned how to correctly implement it and view it from a conceptual standpoint. Great video!
Best channel out there. They way you explain things, it really shows how you yourself experienced learning these topics.
And Im glad to have found this channel. Big ups from Germany.
Thanks! Germany is sweet!
Wow, I was struggling to visualize recursion for months. This cleared it up for me! Thank you!
Amaze! Try our 5 day free mini course for some fascinating content - backtobackswe.com/
WOW. Watched a bunch of videos by different people on traversals, everyone else just mumbles on and on "print this, skip this and print that" without explaining why, and you're THE ONLY ONE who actually explains the whole recursion thing in detail. THANK YOU SO MUCH!
I never comment on videos I see, but this one has to be the exception, because this is by far the best video I have seen on this topic. It cleared up so much confusion, and gave me tools to use along the way. Thank you!
Nice to hear. Thanks and sure
Dude, you just made it so simple to understand, thank you so much! You're an amazing teacher, I get it now
this helped me a bunch for my collage exam, thank you!
Absolutely well explained. I am watching this before my google interview tomorrow. Thanks a lot! Subscribed!
you're amazing. I just started learning data structures in C and this is one of the best explanations i've found of binary trees..
Nice
Amazing content and teaching!! Gained so much knowledge in 20 mins than i could in my whole semester!! Please continue making such quality content on DS&Algo!! Thank you Ben.
nice
I have never commented on a RUclips channel before, but you sir, are an amazing teacher. 🤗 Thank you so much, lots of praise for you from the Namibia University of Science & Technology!
This video is VERY helpful in understanding recursion. I honestly brute forced recursion and never thought of it that way. As someone mentioned in the comments, this channel is a one-in-a-million!
great
This explains tree traversal and recusion so clearly! Truly appreciate you sharing this information!
Thank you, glad you liked it 😀
Do check out backtobackswe.com/platform/content
and please recommend us to your family and friends 😀
half way through the explanation and really loved the nlr for each node! Hopefully now I can try to write logic on my own for tree problems. Fingers crossed!
This is AMAZING! And I laughed so hard at *LOUD CUTTING NOISE*! (Probably means I need to come out of my office for a bit lol) I for sure will be using this content for preview of whatever I am learning. Great work!
I have looked at so many videos to understand this. This is the first video that made me understand it:) The recursive way of thinking was really helpful to understand this
thank you! Means a lot
Thank you so much for this video!! I'm an MIS major and a former CS major and after a so many CS courses a 20 minute video by you finally made me understand traversals! You are great at explaining these concepts and I look forward to binging more of your lessons as I brush up for some SWE interviews
nice thx
5:24 explain very well on nlr (Preorder) traversal on each node, plus recursion in general
had a basic understanding before, your explanation sealed it for me, also patched up a concept i missed..Keep going 👍👍
Man, I wasn't being able to understand tree transversals properly until I've seen your explanation. Thanks a lot! Now I understand!
nice!
Using LNR as the call stack just help me understood how binary trees work in general. Thumbs up man
Awesome. I came from a great CS book I'm reading and the chapter I'm right now touched this topic, so I came here for more info and wow. You helped me to understand it so much better! Keep it up! This channel is awesome
thanks
to the point and straight! thank you! in preparing for my qualifying PhD exam and i just arrive after work and come to starbucks to study! i dont have enough time to read allthings in book carefully so thats the reason this video save much more time for me! tnx again! :)
Hey. Just wanted to thank you for the content. You're clear and concise in your explanation which helps a lot.
hey, thanks
best explaining I've seen so far. Thank you so much!!!
Sir, thank you very much for this video! Wherever you are, I hope you are safe and feeling well. You made me analyze this in the simplest way possible! I am very grateful to you sir. Thank you so much!
thx
OMG thank you for breaking this down. I was really confused before this video.
Your videos are great man. I love your explanations and your examples. They're concise and straight to the point. Keep them coming buddy!!
ok
You explanation to recursion is amazing!
It’s hard to keep up and stay motivated with online classes, so I started slacking off in my data structures class. Thanks to you, I feel like I’ve caught up and I feel ready for my midterm on wednesday 😼
great
One of the best explanations for Binary Trees.Subscribed!
That is what I was searching...keep making videos brother...you deserve our love. :D
ok
Thank you. 20 mins well spent!
first time I ever subscribed to a channel after watching just 1 video, you have a great teaching style!
Really sweet explaination with humoristic slices) It's gorgeous. Thank you!)
this is exactly what I was looking for, thank you!! top notch explanations
BY FAR the BEST explanation ever, thank you!!
Superb job clipping this all together
Thank you so much for the in-depth explanations you provide! I am very grateful to this channel! Thank you so much!
dude, your explaination helps me retain the information so much better than other tutorials. writing the policy on each node is a really good trick for a visual learner like me. Thanks
glad it helped
Thanks to you! I am able to submit my project because of your video!
Turn this one up! You're a great speaker and break down concepts so well.
thx
this is absolutely fire finally understanding tree traversal thanks mate
Bachelors in CS, 3 YOE and this is the firs time I understood recursive tree traversal! thank you!!
Thanks to your channel... It really changed on how I see the traversal works, I understand it better and I hope I can pass my midterm exam on this topic. Thanks dude
nice!
High quality and informative content. A must for conceptual clarity and interview prep.
Thanks a lot for all the work !
sure
Thank you Benyam. The way you teach and explain is really awesome. I've really learned a lot from you. This video is special for "lnr" concept. Thank you again.
Man this is the best explanation of tree order/recursion that I've seen great job!
Thank you, glad you liked it 😀
Do check out backtobackswe.com/platform/content
and please recommend us to your family and friends 😀
Keep it up! Got to go back to the basics sometime and I really need this. Thanks!
sure
after three years I finally understand tree traversal properly T_T , THANK YOU
Finally a decent explanation on tree traversal, thank u
Dude I wanna say that you are really impressive. This subject really made me confused but with your teaching style that shit became more understandable. Thx so much.
This was just what I needed! Thank you so much for all you do.
This is what I do
Studying for an interview next week, wasn't a CS major. OP, you're an awesome resource!
u gon make it
Dude, this is seriously so helpful. You explained it well and got right to the point. Keep it up
sure
This was very helpful for my A-Level CS, thank you
Straight to the point and great breakdown - thank you!
Absolute hat's down. The teaching style is unique and I love it.
I finally got it! you are an amazing teacher. Thank you so much!
man, you've got some intense energy, i love it.
To be honest, you way of teaching is as clear as crystal, loved it ...
Super helpful and helped me knock out my assignment in class in no time and will help me remember these concepts long term. Thanks for making these resources :)
sure
Awesome! Thanks for this video. I was just attempting a leet code problem where I had to traverse a binary tree and I was pretty lost. You're a great teacher!
sure and thanks
This channel is One of its Kind ! Great Job.
It is indeed...it is indeed.
I don't know how to thank you. You have saved me hours of reading a Data Structures Textbook 3 times just to get this concept. Very thankful. Please do not stop your great work
I like how he teaches it so passionately. It was super helpful! awesome!!!
thx - and great
Love your enthusiasm pal. Thanks for great video
The quality of this material is beyond what we deserve THANK YOU SIR
The only person with charisma to teach Data Structures, I love it! (mosh is also good but you are pure gold)
Thanks you man, great explanation. I have been a programmer for 11+ years, but never attended software engineering classes, just self taught, this videos help me a lot.
great and great
It helps a lot when I tried to understand the Tree traversal, huge thanks!
We have always got your back!! 😀
Do check out backtobackswe.com/platform/content
and please recommend us to your family and friends 😀
Your channel is carrying me in my CS class rn, tyty.
Bro, you are the be(a)st, very intuitive explanations. I am not a cs major, but I can follow you very well. Please keep up the good work.
Great video. You completely changed how I thought about the 3 common ways to traverse a BST. Thank you!
nice
This is Gold! Thanks mate!