Where should slow stop before unlinking?

Practice this question from Remove Nth Node From End - Two pointers Pattern Practice Quiz, with options and an explanation.

Question

Where should slow stop before unlinking?

Option A — Correct answer

On the node before the target node

Option B

On the target node itself always

Option C

At the tail from the start

Option D

At null before traversal

Explanation

Slow should stop on the node before the target node.

Remove Nth Node From End - Two pointers Pattern Practice Quiz

All questions · Previous question

Open on QuizMaker