GATE CS 1997 · Asymptotic Analysis & Recurrences

MCQ · 1 mark · Problem PROG-DIVC-0198

The concatenation of two lists is to be performed on O(1) time. Which of the following implementations of a list should be used?
  1. A
    Singly linked list
  2. B
    Doubly linked list
  3. C
    Circular doubly linked list
  4. D
    Array implementation of list

Solve it on GATE DA practice →More Searching & Sorting Algorithms problems

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

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