Amazon Interview Question for SDE1s
- 1of 1 vote
Find the longest path in a binary tree- rahul23111988 December 04, 2013 in India
with one bend.
One bend means like SAY I HAVE
With one bend means all the nodes means if we start connecting nodes then connect as much as possible in a single line and u can take maximun one bend.Say left left left than right right right.That is maximum one turn..It is not same as diameter say ia have
Diameter of above is 3 but if we take all the nodes then we will have 2 bends..
So we will two nodes to get nodes with one bend..hope m clear
| Report Duplicate | Flag | PURGE
Interview Type: Phone Interview
Open Chat in New Window