slow and fast to the dummy node, which points to the head of the list.fast pointer n+1 steps ahead.slow and fast pointers one step at a time until fast reaches the end of the list.slow pointer will now be just before the node to remove.next pointer of the slow pointer to skip the node to be removed.next of the dummy node, which is the new head of the list.