Average of Levels Binary Tree (LeetCode 637) | Solution with easy explanation | Study Algorithms

  Рет қаралды 3,144

Nikhil Lohia

Nikhil Lohia

Күн бұрын

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

Пікірлер: 16
@amitpanc
@amitpanc 3 күн бұрын
Great way to explain. Everything is crystal clear.
@ajaydeepsinghrajpoot
@ajaydeepsinghrajpoot Жыл бұрын
very clear explanation.
@meghnagupta9072
@meghnagupta9072 Жыл бұрын
Loved the way you explain..... Super!
@nikoo28
@nikoo28 Жыл бұрын
Thank you so much 🙂
@eminentm1655
@eminentm1655 Жыл бұрын
Thanks Sir
@subee128
@subee128 7 ай бұрын
Thanks
@infinite639
@infinite639 Жыл бұрын
like it bro
@infinite639
@infinite639 Жыл бұрын
Please do more and more questions of leetcode dynamic programming , Trees, Sorting, Graphs, Stack
@nikoo28
@nikoo28 Жыл бұрын
I am adding a new video every week :) stay tuned for more and more
@nikoo28
@nikoo28 6 ай бұрын
The complete playlist on graphs is now available: kzbin.info/aero/PLFdAYMIVJQHNFJQt2eWA9Sx3R5eF32WPn
@pulastyadas3351
@pulastyadas3351 Жыл бұрын
Will you please discuss the leetcode question - contains duplicate 2
@nikoo28
@nikoo28 Жыл бұрын
sure...I will add it to my list.
@pulastyadas3351
@pulastyadas3351 Жыл бұрын
@@nikoo28 thanks a lot
@gauravkumar-ek8mr
@gauravkumar-ek8mr Жыл бұрын
Hi Nikhil, put some light on your journey with SAMSUNG COMPANY.
@nikoo28
@nikoo28 Жыл бұрын
I will create a video but not sure how much I can disclose. Samsung was one of the companies who are like top secret about everything.. 😅 They didn’t even allow you to take your laptop home.
@gauravkumar-ek8mr
@gauravkumar-ek8mr Жыл бұрын
@@nikoo28 sure👍
Best Toilet Gadgets and #Hacks you must try!!💩💩
00:49
Poly Holy Yow
Рет қаралды 22 МЛН
Опасность фирменной зарядки Apple
00:57
SuperCrastan
Рет қаралды 12 МЛН
EVOLUTION OF ICE CREAM 😱 #shorts
00:11
Savage Vlogs
Рет қаралды 12 МЛН
Binary tree: Level Order Traversal
11:23
mycodeschool
Рет қаралды 602 М.
Max Consecutive Ones (LeetCode 1004) | Full Solution w/ animations
14:41
I've been using Redis wrong this whole time...
20:53
Dreams of Code
Рет қаралды 348 М.
Count Complete Tree Nodes | Leetcode #222
13:39
Techdose
Рет қаралды 32 М.