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

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

From the Combined Bank Assistant Programmer (CSE) March 2021 – Preliminary exam, question 28 of 86.

More from this paper