Amazon.com Interview Question
1,580 Interview Reviews |
Back to all Amazon.com Interview Questions & Reviews
Interview questions and reviews posted anonymously by interview candidates
Interview Question for Senior Software Engineer at Amazon.com:
find LCA for two nodes of a binary tree.
See more for this Amazon.com Senior Software Engineer Interview
Helpful Question?
Yes |
No
Inappropriate?



0 of 0 people found this helpful
by ts:
List 2: tree nodes postorder
List 3: all the nodes in between the given 2 nodes
List 4: all the nodes after the given 2 nodes
the LCA is the common node in List 3 and List 4.