Concept Flow - BST Inorder Successor
Start at root
Search for target node
Found target node?
No→Return None
Yes
Does target have right child?
Yes→Go to right child
Go left as far as possible
Go up to ancestor where node is left child
Return this ancestor as successor
Done
Find the node, then if it has right child, successor is leftmost node in right subtree; else go up to ancestor where node is in left subtree.
