Skip to content

Adding Interview question "Construct Tree Using Inorder and Preorder"#114

Open
Shubh-k04 wants to merge 2 commits intoTharinduDilshan:mainfrom
Shubh-k04:patch-6
Open

Adding Interview question "Construct Tree Using Inorder and Preorder"#114
Shubh-k04 wants to merge 2 commits intoTharinduDilshan:mainfrom
Shubh-k04:patch-6

Conversation

@Shubh-k04
Copy link
Contributor

For a given preorder and inorder traversal of a Binary Tree of type integer stored in an array/list, create the binary tree using the given two arrays/lists. You just need to construct the tree and return the root. Note:
Assume that the Binary Tree contains only unique elements.

For a given preorder and inorder traversal of a Binary Tree of type integer stored in an array/list, create the binary tree using the given two arrays/lists. You just need to construct the tree and return the root.
Note:
Assume that the Binary Tree contains only unique elements.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant