Reverse a Linked List

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

  • easy
  • Pro

Given the head of a singly linked list, reverse the list and return its new head. Explain how you'd do it in place, and what it costs.

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 →