Series of problems related to "Binary Tree Traversal"
We could solve these problems iteratively using the same technique, Stack/Queue.
For solving inorder and postorder traversal iteratively, we need to store extra information "Visited Status".
For level order, we need to use Queue instead of Stack.
Related problems (follow the order to solve each problem):
0144. Binary Tree Preorder Traversalarrow-up-right
0145. Binary Tree Postorder Traversalarrow-up-right
0094. Binary Tree Inorder Traversalarrow-up-right
0102. Binary Tree Level Order Traversalarrow-up-right
0104. Maximum Depth of Binary Treearrow-up-right
1302. Deepest Leaves Sumarrow-up-right
0993. Cousins in Binary Treearrow-up-right
Summary of Traversal Types:
Last updated 4 years ago