Remove duplicates from a sorted array in place, keeping the first k unique values in order, in O(n) time and O(1) space.
Remove duplicates from a sorted array in place, keeping the first k unique values in order, in O(n) time and O(1) space.
The discussion opens with the full question.