constructing binary tree using preorder and inorder traversal
Explanation For this problem, we can take advantage of the order of nodes in the preorder and inorder traversals. A preorder traversal is [node, left, right] while inorder traversal is [left, node, ri...