What is the time complexity of binary search with iteration?

PYQ Capgemini Hiring Assessment 2025

What is the time complexity of binary search with iteration?

  1. A.

    O(nlogn)

  2. B.

    O(logn)

  3. C.

    O(n)

  4. D.

    O(n2)

Attempted by 385 students.

Sign up free to check your answer

Sign up free

Explore the full course: Cdac C Cat Complete Preparation

Loading lesson…