Course · Section 11: Working With Arrays · Lecture 149: Simple Array Methods
Implement `removeDuplicatesSorted(arr)` returning the unique values from a sorted array, in order.
+ 1 hidden test run on Submit.
Because duplicates are adjacent in sorted input, comparing each value to the last kept one removes them in one pass.
Run your code to see results.