Leetcode 0026. Remove Duplicates from Sorted Array
Posted on Fri 01 November 2024 in Leetcode • Tagged with array-shift, two-pointers
Question Link : https://leetcode.com/problems/remove-duplicates-from-sorted-array/
Difficulty: Easy
Premium: False
Question
Given an integer array nums sorted in non-decreasing order, remove the duplicates in-place such that each unique element appears only once. The relative order of the elements should be kept the same. Then return the number of unique …
Continue reading