Use two pointers with a fixed gap of n nodes.
Advance fast by n. Then move fast and slow together until fast is at the last node. slow.next is the node to remove.
The n-node gap guarantees slow lands right before the target node.
Use two pointers with a fixed gap of n nodes.
Advance fast by n. Then move fast and slow together until fast is at the last node. slow.next is the node to remove.
The n-node gap guarantees slow lands right before the target node.