Consider a singly linked list of the form where F is a pointer to the first…

ISRO Scientist/Engineer SC · 2018 · Computer Science

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?

image.png

  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

Attempted by 1042 students.

Show answer

Correct answer: A

The worked solution is available to enrolled students.

Video solution available to enrolled students.

Explore the full course: Iocl Engineers Officers Grade A Paper 2

Loading lesson…