The numbers \(1, 2, .\dots n\) are inserted in a binary search tree in some order. In the resulting tree, the right subtree of the root contains p nodes. The first number to be inserted in the tree must be
- Ap
- Bp + 1
- Cn - p
- Dn - p + 1
Solve it on GATE DA practice →More Basic Data Structures problems