Easy
Given a sorted integer array nums, remove the duplicates in-place so each unique element appears once, and return the number of unique elements k.
nums
k
Input: nums = [1,1,2] Output: 2
Input: nums = [0,0,1,1,1,2,2,3,3,4] Output: 5