sir i am not able to understand why the answer is A . as we are given the L pointer pointing to last element so for deleting it we just have to make L point to null .
Question :
Q1. Delete In A Linked List
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?
Delete the element from the last
Delete the element from first
Add an element to the last
Interchange the first two elements