GATE CS 2002 · Arrays & Matrix Representation

MCQ · 1 mark · Problem PROG-DSTR-0250

In the worst case, the number of comparisons needed to search a single linked list of length n for a given element is
  1. A
    log n
  2. B
    n/2
  3. C
    \(log_{2}^{n}-1\)
  4. D
    n

Solve it on GATE DA practice →More Basic Data Structures problems

Show the worked solutionOfficial GATE Answer Key: Option D.See full step-by-step discussion on GateOverflow: https://gateoverflow.in/809/gate2002-1-5

GATE DA practice: past exam problems by chapter, with worked solutions · gatedaprep.com