Loading...
Engaged employer
Write an algorithm to verify if a tree is a binary search tree
Anonymous
check if root >= left and root <= right and isBST(root.left) and isBST(root.right) checking if any node is null.
Do in-order traversal, ensuring that the next node value you see is greater than current node value.
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 personalised job recommendations and updates by starting your searches.