Loading...
Is this your company?
Verify a BST
Anonymous
remember and update max and min when you go down the tree
Go breadth first and make sure left node < right node. That verifies the BST property at each level.
Do an inorder traversal and see if the values are sorted, if they are it is a BST else not.
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.