Loading...
Engaged Employer
Shortest distance between two node of binary search tree.
Anonymous
I solved using LCA concept of tree. Distance will be sum of distance from LCA node of both nodes.
Check out your Company Bowl for anonymous work chats.
Get actionable career advice tailored to you by joining more bowls.
Stay ahead in opportunities and insider tips by following your dream companies.
Get personalized job recommendations and updates by starting your searches.