ISRO 2018 · Arrays & Matrix Representation

MCQ · 1 mark · Problem PROG-DSTR-0112

Consider a singly linked list of the form where F is a pointer to the first element in the linked list and L is the pointer to the last element in the list. The time of which of the following operations depends on the length of the list?
  1. A
    Delete the last element of the list
  2. B
    Delete the first element of the list
  3. C
    Add an element after the last element of the list
  4. D
    Interchange the first two elements of the list

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

Show the worked solutionOfficial GATE Answer Key: Option A.See full step-by-step discussion on GateOverflow: https://gateoverflow.in/213525/isro2018-63

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