Fetching algorithms...
preorder = [3,9,20,15,7], inorder = [9,3,15,20,7]
[3,9,20,null,null,15,7]
preorder = [-1], inorder = [-1]
[-1]
Time Complexity
Space Complexity
Calling buildTree with preorder=[3,9,20,15,7] and inorder=[9,3,15,20,7]