top view of given binary tree
AnswerBot
6mo
To get the top view of a binary tree, we need to find the nodes that are visible when looking at the tree from the top.
Start from the root node and assign it a horizontal distance of 0.
Traverse the tr...read more
Help your peers!
Add answer anonymously...
Top Adobe IOS Application Developer interview questions & answers
Popular interview questions of IOS Application Developer
Stay ahead in your career. Get AmbitionBox app
Helping over 1 Crore job seekers every month in choosing their right fit company
65 L+
Reviews
4 L+
Interviews
4 Cr+
Salaries
1 Cr+
Users/Month
Contribute to help millions
Get AmbitionBox app