Рет қаралды 3,144
Binary tree is a very important interview based data structure simply because of the number of ways you can traverse it. This gives birth to a lot of possible use cases and you need to understand it completely. This problem explores the binary tree one level at a time while going through every element. All along with animations and code.
Chapters:
00:00 - Intro
01:02 - Problem Statement and Test cases
02:49 - Using level order traversal
07:07 - Dry-run of Code
10:04 - Final Thoughts
Actual problem on LeetCode: leetcode.com/problems/average...
📚 Links to topics I talk about in the video:
Binary Tree: • Creating a Binary Tree...
Level Order Traversal: • Level order traversal ...
In order Traversal: • In-order traversal of ...
Pre order Traversal: • Pre-order traversal of...
Post order Traversal: • Post-order traversal o...
📘 A text based explanation is available at: studyalgorithms.com
Code on Github: github.com/nikoo28/java-solut...
Test-cases on Github: github.com/nikoo28/java-solut...
📖 Reference Books:
Starting Learn to Code: amzn.to/36pU0JO
Favorite book to understand algorithms: amzn.to/39w3YLS
Favorite book for data structures: amzn.to/3oAVBTk
Get started for interview preparation: amzn.to/39ysbkJ
🔗 To see more videos like this, you can show your support on: www.buymeacoffee.com/studyalg...
🎥 My Recording Gear:
Recording Light: amzn.to/3pAqh8O
Microphone: amzn.to/2MCX7qU
Recording Camera: amzn.to/3alg9Ky
Tablet to sketch and draw: amzn.to/3pM6Bi4
Surface Pen: amzn.to/3pv6tTs
Laptop to edit videos: amzn.to/2LYpMqn
💻 Get Social 💻
Follow on Facebook at: / studyalgos
Follow on Twitter at: / studyalgorithms
Follow on Tumblr at: / studyalgos
Subscribe to RSS feeds: studyalgorithms.com/feed/
Join fan mail: eepurl.com/g9Dadv
#leetcode #programming #interview