Remove Duplicates in Place

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 a sorted list of integers, remove the repeated values in place so each value appears once at the front of the list, and return how many unique values there are. Explain your approach and its cost.

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 →