lasrevarTredrinIdnaredroerPmorfeerTyraniBtcurtsnoC.105

来源:互联网 发布:nginx 支持ipv6 编辑:程序博客网 时间:2024/04/30 20:24

problem:https://leetcode.com/problems/construct-binary-tree-from-preorder-and-inorder-traversal/

tips:

中序,后序,前序遍历是以root为基准。遍历顺序。

指针作为参数,在函数结束后值将消失。

指针也是局部变量,除非它赋了一个地址。

树的遍历,递归如何写!


0 0
原创粉丝点击