Given the sorted array arr = {2, 5, 7, 99, 899} and key = 899, at what level…

PYQ eLitmus 2024

Given the sorted array arr = {2, 5, 7, 99, 899} and key = 899, at what level of recursion is the key found, using recursive binary search and counting the very first call as level 1?

  1. A.

    5

  2. B.

    2

  3. C.

    3

  4. D.

    4

Attempted by 79 students.

Sign up free to check your answer

Sign up free

Explore the full course: Cdac C Cat Complete Preparation

Loading lesson…