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
题意:
二叉树的中序遍历
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
题意:
二叉树的中序遍历
1 |
|