Which of the following operations is not O(1) for an array of sorted data. You…

PYQ Cognizant GenC 2025

Which of the following operations is not O(1) for an array of sorted data. You may assume that array elements are distinct.

  1. A.

    Find the ith largest element

  2. B.

    Delete an element

  3. C.

    Find the ith smallest element

  4. D.

    All of the above

Attempted by 1224 students.

Sign up free to check your answer

Sign up free

Explore the full course: Cdac C Cat Complete Preparation

Loading lesson…