Concept Flow - BST Iterator Design
Initialize stack empty
Push all left nodes from root
HasNext?
No→End
Yes
Pop top node
Return popped node value
Push all left nodes from popped node's right child
↩Back to HasNext?
The iterator uses a stack to store nodes. It pushes all left children first, then pops nodes to return values, pushing left children of right subtrees as it goes.
