I was asked to create a function to check if a binary tree is sorted.
Anonymous
Created an in-order tree traversal that retains the last node visited. If the last node is greater than the current node, the tree is not sorted.
Check out your Company Bowl for anonymous work chats.