Question DSA-LL-0011
MediumHow do you delete a node from a singly linked list when you have a pointer only to that node (not the last one)?
- A.
It is impossible
- B.
Traverse from the head
- C.
Set the node to null
- D.
Copy the next node's data into it, then delete the next node
Sign up free to see the answer and a step-by-step explanation.