Binary Tree Traversal
Preorder
Given a binary tree, return the preorder traversal of its nodes' values.
Example:
Follow up: Recursive solution is trivial, could you do it iteratively?
Inorder
Postorder
Last updated
Given a binary tree, return the preorder traversal of its nodes' values.
Example:
Follow up: Recursive solution is trivial, could you do it iteratively?
Last updated