Remove Duplicates from Sorted Array — October 15, 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 preserved. Return Value: The function should return the new length of the array after removing duplicates. Constraints: Do not allocate extra space f
