ISRO 2014 · Asymptotic Analysis & Recurrences

MCQ · 1 mark · Problem PROG-DIVC-0189

Consider a single linked list where F and L are pointers to the first and last elements respectively of the linked list. The time for performing which of the given operations depends on the length of the linked list?
  1. A
    Delete the first element of the list
  2. B
    Interchange the first two elements of the list
  3. C
    Delete the last element of the list
  4. D
    Add an element at the end of the 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/54985/isro2014-49

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