← Microsoft questions
CodingReported in a candidate post, Feb 2026

Remove duplicates from sorted array, extended to keep duplicates

Filed under Microsoft

You are given an integer array nums sorted in non-decreasing order. Part 1: remove duplicates in place so each unique value appears once, and return the new length. Follow-up (as reported…

You've read your 3 free write-ups

Sign up free to keep reading. Your account opens the first 10 questions of every company.

Related Microsoft questions

Collected from public candidate posts and coding forums. Updated Nov 2026.