Concept Flow - BST Iterator Design
Initialize stack empty
Push all left nodes from root
Check if stack empty?
Yes→No next element
No
Pop top node from stack
Return popped node's value
Push all left nodes from popped node's right child
Repeat check for next element
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.