Approach hintTry it first, then revealHide
Recursively visit the left subtree, the node, then the right subtree. For the iterative version, push nodes while walking left, then pop one, record it and continue from its right child.
Recursively visit the left subtree, the node, then the right subtree. For the iterative version, push nodes while walking left, then pop one, record it and continue from its right child.