TheChetan

Top View

Jul 5th, 2021
1,087
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.15 KB | None | 0 0
  1. 5. Print the top view of a binary tree.
  2. Example:
  3. 5
  4. / \
  5. / \
  6. 3 6
  7. / \ / \
  8. 5 7 - 9
  9.  
  10. Ans: 5, 3, 5, 6, 9
Advertisement
Add Comment
Please, Sign In to add comment