Print the top view of nodes in a binary tree.
Unlock detailed company stats for this questionUpgrade
The top view of a binary tree refer to nodes visible when the tree is viewed from the top. Return nodes from left to right.
Community answers
No answers contributed by the community yet.
Related questions
Print the left view of a binary tree.Print the cousins of a given node in a binary tree.Find the first common ancestor of two nodes in a binary tree.Related courses

Course

Course
Course
