Skip to content

Latest commit

 

History

History
executable file
·
8 lines (5 loc) · 286 Bytes

105.md

File metadata and controls

executable file
·
8 lines (5 loc) · 286 Bytes

105. Construct Binary Tree from Preorder and Inorder Traversal

the preorder traversal is middle left right. the inorder traversal is left middle right.

Therefore, the we can first find the middle point and construct a binary tree. Then we can recursive.

Yes, this is correct. AC!