Skip to main content

DFS Post Order

Visits the left subtree, then the right subtree, then the root.

Interactive Visualization

Loading visualization…

Usage

src/sample/postorder.ts
import { postOrder, Node } from 'athro';

const root = new Node(3);
const result = postOrder(root);