Removing Duplicates
摘要
Consider an integer array sorted in non-descending order. We need to remove duplicate elements in place, leaving only unique elements. The original order of elements must be preserved. Return the number of unique elements in the array.