GATE CS 1995 · Arrays & Matrix Representation

MCQ · 1 mark · Problem PROG-DSTR-0268

For merging two sorted lists of sizes \(m\) and \(n\) into a sorted list of size \(m+n\), we require comparisons of
  1. A
    \(O(m)\)
  2. B
    \(O(n)\)
  3. C
    \(O(m+n)\)
  4. D
    \(O(\log m + \log n)\)

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

Show the worked solutionOfficial GATE Answer Key: Option C.See full step-by-step discussion on GateOverflow: https://gateoverflow.in/2603/gate1995-1-16

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