Remove Duplicates from Sorted Array — November 11, 2026
Given a sorted array nums, remove the duplicates inplace such that each unique element appears only once. The relative order of the elements should be kept the same. Your function should return the new length k after removing the duplicates. Do not allocate extra space for another array; you must do
