Search⌘ K
AI Features

Remove Duplicates from Sorted Array

Remove Duplicates from Sorted Array asks you to modify a sorted integer array in place so each value appears once, then return the number of unique elements stored at its beginning.

Statement

You are given an integer array nums that is already sorted in non-decreasing order. Your task is to ...