problem:https://leetcode.com/problems/construct-binary-tree-from-preorder-and-inorder-traversal/
tips:
中序,后序,前序遍历是以root为基准。遍历顺序。
指针作为参数,在函数结束后值将消失。
指针也是局部变量,除非它赋了一个地址。
树的遍历,递归如何写!
problem:https://leetcode.com/problems/construct-binary-tree-from-preorder-and-inorder-traversal/
tips:
中序,后序,前序遍历是以root为基准。遍历顺序。
指针作为参数,在函数结束后值将消失。
指针也是局部变量,除非它赋了一个地址。
树的遍历,递归如何写!