Takefumi Yamamura's blog

This blog is for my memorandum.

Takefumi Yamamura's b!og

This blog is for my memorandum

Delete Middle Node

problem

Implment an algorithm to delete a node in the middle of a singly linked list. But you can only access to that node.

note

The solution is simply to copy the data from the next node over to the current node.

code