Suppose we are deleting a node with data field as x. Which can be present anywhere in the list.
Consider following Scenarios :
S1 : You're only provided with pointer to the node which needs to be deleted.
S2 : You're only provided with the pointer to the starting node.
Which of following is correct ?
A. In both scenarios deletion is possible for all inputs, and deletion will be more efficient in S1 then in S2.
B. In both scenarios deletion is possible for all inputs, and deletion will be more efficient in S2 then in S1.
C. Deletion is not possible for certain cases in S1, but deletion is possible in all cases for S2.
D. Deletion is not possible for certain cases in S2, but deletion is possible in all cases for S1.
Ans. C