Skip to content

Instantly share code, notes, and snippets.

View artkorzh's full-sized avatar
🤔

Artem artkorzh

🤔
View GitHub Profile
def dfs_postorder_recursive(root):
if root is None:
return # base case
dfs_postorder_recursive(root.left) # LEFT
dfs_postorder_recursive(root.right) # RIGHT
visit(root) # VISIT
# T. Webster-like approach,