Binary Tree Preorder Traversal
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
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