94_Binary Tree Inorder Traversal
94. Binary Tree Inorder Traversal
Question
Given a binary tree, return the inorder traversal of its nodes' values.Example 1
Given binary tree [1,null,2,3],
1
\
2
/
3
return [1,3,2]Solution 1: recursive
Solution 2: iteratively (my solution)
Another version, popular online
Last updated