Remove the Nth Node from the End

Talk it through with a coach who asks guiding questions and gives hints until you reach the answer. Pass to mark the challenge as completed.

The problem

  • medium
  • Pro

Given the head of a linked list and a number n, remove the nth node counting from the end and return the head. Explain how to do it in one pass.

Talk this problem through with an AI coach

This is a Pro challenge. Sign in with Google, then upgrade to start a voice session.

Start free →