You are given pointers to first and last nodes of a singly linked list, which…

PYQ TCS NQT 2024

You are given pointers to first and last nodes of a singly linked list, which of the following operations are dependent on the length of the linked list?

  1. A.

    Delete the first element

  2. B.

    Insert a new element as a first element

  3. C.

    Delete the last element of the list

  4. D.

    Add a new element at the end of the list

Attempted by 205 students.

Sign up free to check your answer

Sign up free

Explore the full course: Cdac C Cat Complete Preparation

Loading lesson…