Remove Duplicates from Sorted Array at Microsoft

Easy62.2% acceptance

This problem has 75.0% frequency at Microsoft.

Problem Description

Given an integer array `nums` sorted in **non-decreasing order** , remove the duplicates [**in-place**](<https://en.wikipedia.org/wiki/In-place_algorithm>) such that each unique element appears only **once**. The **relative order** of the elements should be kept the **same**. Consider the number of...

Read full problem and hints

Topics

Also asked at 27 companies


More Microsoft Questions

View all Microsoft questions