Problem 590 · Easy

N-ary Tree Postorder Traversal

Process a multi-way tree so every child branch finishes before its parent is recorded. The visual drags nodes down into a stack and releases each one only after its children have been placed.

Open the interactive visualisation