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?
A. Delete the first element
B. Insert a new element as a first element
C. Delete the last element of the list
D. Add a new element at the end of the list
Answer:D
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?
A. Delete the first element B. Insert a new element as a first element C. Delete the last element of the list D. Add a new element at the end of the list