{"id":"stack-extend-preserves-child-order","text":"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.","truth_value":"IN","source":"entries/2026/06/06/n-ary-tree-postorder-traversal-solution.md","source_url":"","source_hash":"","justifications":[],"dependents":[],"metadata":{},"created_at":"","updated_at":"","reviewed_at":"","verified_at":"","retracted_at":"","explanation":{"steps":[{"node":"stack-extend-preserves-child-order","truth_value":"IN","reason":"premise"}]}}