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 1094 students.

Sign up free to check your answer

Sign up free

Explore the full course: Gate Guidance By Sanchit Sir

Loading lesson…