Milly: jobseeker is right in that you don't delete the "node to be deleted". You delete the node that FOLLOWS the "node to be deleted", only after swapping the values of the two.
2
Sigiloso
25 de out. de 2010
Milly, jobseeker's assumption is reasonable, we should not delete the node before removing it from the list (if it was created by the list)
1
Sigiloso
21 de out. de 2010
The post by "jobseeker" assumes that we know the node BEFORE the node to be deleted. This assumption is not consistent with the problem definition, but makes it solvable.