Loading page…
Three interview problems walk a tree inorder, preorder and postorder without recursion. The move is to keep the work still owed on a stack of your own. The lecture covers push order, the depth pairs, the stack size and the postorder reversal.
Three interview problems walk a whole tree in a fixed order.