Concept Flow - Validate if Tree is BST
Start at root node
Check if node is None?
Yes→Return True
No
Check node value > min and < max?
No→Return False
Yes
Recurse left subtree with updated max = node value
Recurse right subtree with updated min = node value
Return left_result AND right_result
We start at the root and check if each node's value fits the allowed min and max range. We update these bounds as we go down left and right subtrees. If all nodes satisfy the BST property, we return True.
