
Given a Binary Tree you need to print the top view and bottom view of the Binary Tree. Level order input for the Binary Tree is given. 1. Top view sample input: 1 2 3 4 5 6 -1 -1 -1 -1 -1 -1 -1 sample output: 4 2 1 3 The tree looks like: ...
Data Structures and Algorithms 💯
Markdown supported · ⌘↵ to post
No responses yet.