bars
📈
notes
search
circle-xmark
⌘
Ctrl
k
copy
Copy
chevron-down
0105_Construct_Binary_Tree_from_Preorder_and_Inorder_Traversal
思路1
用个 hash 加速查找 pre 中第一个节点在 in 中的位置
注意新建的node一定要用new,不然局部变量不会存在在其作用域之外。
Previous
0105_Construct_Binary_Tree_from_Preorder_and_Inorder_Traversal
chevron-left
Next
0106_Construct_Binary_Tree_from_Inorder_and_Postorder_Traversal
chevron-right
Last updated
4 years ago