Remove Duplicates from Sorted Array: Interactive Visualizer
Walk one pointer ahead to find distinct values and overwrite the front of the array in-place.