sumanth.nitw
BAN USER
Questions (2)
Reputation 10
- 0of 0 votes
AnswersA binary tree is given we need to print vertical sums of nodes. for example
1 2 3 4 5 | | 5 | | | | / | \ | | | | / | 8 | | | / | / | \| | 4 | / | 10 | / | \ 9 | | | / | \ | | 7 | 6 | | | | | | | | | | | ----------------------------------------------- 7 4 20 8 10
Here we need to print sum 7,4,20,8,10.
- sumanth.nitw in United States| Report Duplicate | Flag | PURGE
Amazon Software Engineer / Developer Trees and Graphs
Page:
1
Page:
1
CareerCup is the world's biggest and best source for software engineering interview preparation. See all our resources.