0

45kviews

Construct Binary search tree for the following element. 47,12,75,88,90,73,57,1,85,50,62

**1 Answer**

0

45kviews

Construct Binary search tree for the following element. 47,12,75,88,90,73,57,1,85,50,62

4

8.1kviews

written 2.5 years ago by |

**Binary Search Tree (BST) for the following sequence of numbers-**

**47, 12, 75, 88, 90, 73, 57, 1, 85, 50, 62**

Always consider the first element as the root node. Consider the given elements and insert them in the BST one by one.

Step 1. Insert 47

Step 2. Insert 12

Step 3. Insert 75

Step 4. Insert 88

Step 5. Insert 90

Step 6. Insert 73

Step 7. Insert 57

Step 8. Insert 1

Step 9. Insert 85

Step 10. Insert 50

Step 11. Insert 62

This is the required Binary Seach Tree (BST).

ADD COMMENT
EDIT

Please log in to add an answer.