144. Binary Tree Preorder Traversal
problem description
Input: [1,null,2,3]
1
\
2
/
3
Output: [1,2,3]
Follow up: Recursive solution is trivial, could you do it iteratively?algorithm thought
code
algorithm analysis
Last updated