
LeetCode 94 Binary Tree Inorder Traversal 题解
1.题目:
Given a binary tree, return the inorder traversal of its nodes’ values.
For example:
Given binary tree [1,null,2,3],
1
2
/
3
return [1,3,2].
题意:
二叉树的中序遍历
2.解题思路:
3.代码
1 |
|

Given a binary tree, return the inorder traversal of its nodes’ values.
For example:
Given binary tree [1,null,2,3],
1
2
/
3
return [1,3,2].
题意:
二叉树的中序遍历
1 |
|
近期评论