Loading...
Engaged employer
How do you insert into a binary tree?
Anonymous
You find the spot to insert by traversing to where you think it is located. Then, you add it there if you don't find it. The complexity is O(log n)
was it a general binary tree or bst?
Stay ahead in opportunities and insider tips by following your dream companies.
Get personalised job recommendations and updates by starting your searches.
Get actionable career advice tailored to you by joining more bowls.
Check out your Company Bowl for anonymous work chats.