We are given a set of n distinct elements and an unlabelled binary tree with n…

PYQ Capgemini Hiring Assessment 2025

We are given a set of n distinct elements and an unlabelled binary tree with n nodes. In how many ways can we populate the tree with the given set so that it becomes a binary search tree?

  1. A.

    0

  2. B.

    1

  3. C.

    n!

  4. D.

    (1/(n+1)).2nCn

Attempted by 339 students.

Sign up free to check your answer

Sign up free

Explore the full course: Cdac C Cat Complete Preparation

Loading lesson…