leetcode -- Construct Binary Tree from Preorder and Inorder Traversal

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

follow 上一题的思路。但是要避免MLE.

参考http://blog.hushlight.com/2015/02/leetcode-construct-binary-tree-preorder-inorder-traversal/

你可能感兴趣的:(leetcode -- Construct Binary Tree from Preorder and Inorder Traversal)