Gradient LabSign up free

Home / GATE DA / 2025 / Q.27

GATE DA 2025, Q.27: When is worst-case binary search O(log n)

Data structures and algorithmsBinary search requirements1 markMSQ (more than one correct)

The question

For which inputs is worst-case binary search O(log n)? (A) Array of n integers in any order. (B) Linked list of n integers in any order. (C) Array of n integers in increasing order. (D) Linked list of n integers in increasing order.

Checking your access…

Source: official GATE DA 2025 question paper and answer key (IIT Roorkee). The question is lightly reworded; every number and option is kept.