Binary Tree in Java - 25: Print Boundary Nodes In Binary Tree

preview_player
Показать описание

Solution:
- We'll divide in into 4 subsets
- 1st will print root node
- 2nd will print non leaf left boundary nodes
- 3rd will print all leaf nodes
- 4th will print right side non leaf boundary nodes
Time Complexity: O(n)
Do watch video for more info

This Problem is synonym of following problems:

How to get min value in Binary Search tree,
Binary tree print boundary nodes,
Binary tree print boundary nodes java,
Binary tree print boundary nodes,
print boundary nodes,
print boundary values,
Binary tree,
java,

Please check video for more info:

CHECK OUT CODING SIMPLIFIED

★☆★ VIEW THE BLOG POST: ★☆★

I started my YouTube channel, Coding Simplified, during Dec of 2015.
Since then, I've published over 200+ videos.

★☆★ SUBSCRIBE TO ME ON YOUTUBE: ★☆★

★☆★ Send us mail at: ★☆★

Рекомендации по теме
Комментарии
Автор

Very nice videos !!!

I have one doubt here.. In the given binary tree, node 8 has left child node 5. If node 5 has left child with some value 1, and this node again has some left child node with some value 11 and this node again can have some left child node. In this case non leaf left boundary nodes printing method will skip some nodes which are non leaf and at left boundary.
Please correct me if I am missing something here.

vineetmittal
Автор

nice explanation...this approach won't take into account for removing nodes that have been already visited right? duplicate nodes I mean

hamsalekhavenkatesh
Автор

where was I? best video tutorial.
thanks sir

adityarathod
Автор

Great explanation!!!! This channel surely deserves more appreciation.

krishjani
Автор

thnks 4 providing such h great explanation

sharuk