in DS retagged by
464 views
0 votes
0 votes

in DS retagged by
464 views

5 Comments

i) True

ii) False
0
0
1 is True , since it is binary search tree.

2 is false.
0
0
preorder: 31254

post: 21453

could you construct two bst's for this?
0
0
Apologies , completely overlooked that it is a binary search tree
0
0

we can construct BST (Binary search tree) using just preorder traversal )

https://www.geeksforgeeks.org/construct-bst-from-given-preorder-traversal-set-2/

0
0

1 Answer

0 votes
0 votes
both are not true. for statement I concerning BST inorder with preorder/post order is required. for statement II, each node has at most TWO children mean node may have one child also. In such a CASE NO OF LEAVE NODES MAY NOT EXPRESSED IN POWER OF 2.

Related questions