Series of problems related to "N-ary Tree Traversal"
We could solve these problems iteratively using the same technique, Stack/Queue.
For solving 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):
0589. N-ary Tree Preorder Traversalarrow-up-right
0590. N-ary Tree Postorder Traversalarrow-up-right
0429. N-ary Tree Level Order Traversalarrow-up-right
0559. Maximum Depth of N-ary Treearrow-up-right
Last updated 4 years ago