Tree: Postorder Traversal

  • + 0 comments

    Python 3:

    def postOrder(root):
        if root.left:
            postOrder(root.left)
        if root.right:
            postOrder(root.right)
        print(root.info, end =" ")