Removing Duplicates from Sorted Array II Using Two Pointers
Problem Statement Given a sorted integer array nums, remove duplicates in-place sothat each unique element appears no more than twice. Return the new length of the array. Key constraints: Must modify the input array in-place Space complexity must be O(1) The function receives the array by reference...