题目:https://leetcode.com/problems/construct-binary-tree-from-preorder-and-inorder-traversal/
代码(github):https://github.com/illuz/leetcode
从前序中序遍历建树。
用递归直接模拟就可以了。
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
parent directory.. | ||||
题目:https://leetcode.com/problems/construct-binary-tree-from-preorder-and-inorder-traversal/
代码(github):https://github.com/illuz/leetcode
从前序中序遍历建树。
用递归直接模拟就可以了。