stack-extend-preserves-child-order

Status: IN

In the postorder solution, `stack.extend(node.children)` pushes children left-to-right so the rightmost is popped first, producing root-right-left order that reverses to correct left-right-root postorder.

Source: entries/2026/06/06/n-ary-tree-postorder-traversal-solution.md

JSON