Concept Flow - BST Inorder Predecessor
Start at root node
Search for target node
Found target node?
No→Return null (not found)
Yes
Check if left child exists
Go to left subtree
Find rightmost node in left subtree
This node is inorder predecessor
Return predecessor value
Start from root, find the target node. If it has a left child, go left then rightmost to find predecessor. Otherwise, predecessor is ancestor tracked during search.
