Postorder traversal is where a node is visited after its descendants.
- Running time for a tree with nodes is .
def postOrder(T, v):
for each child w of v in T:
postOrder(T, w)
visit(v)Postorder traversal is where a node is visited after its descendants.
def postOrder(T, v):
for each child w of v in T:
postOrder(T, w)
visit(v)