Delete a specified node in a singly linked list. When I first read the problem, I thought at least both the head node and the target node should be given. But after guessing, I realized the problem likely requires copying the values of subsequent nodes forward to overwrite, rather than performing a true linked list deletion.
| |