An unordered list contains n distinct elements. The number of comparisons to…

PYQ GATE 2015

An unordered list contains n distinct elements. The number of comparisons to find an element in this list that is neither maximum nor minimum is

  1. A.

    Θ(n log n)

  2. B.

    Θ(n)

  3. C.

    Θ(log n)

  4. D.

    Θ(1)

Attempted by 618 students.

Sign up free to check your answer

Sign up free

Explore the full course: Algorithms

Loading lesson…