Remove Duplicates from Sorted Array — write pointer
Because the array is sorted, duplicates sit next to each other. A read pointer scans; a write pointer keeps only values that differ from the last one kept.
Try:
← Prev
Next →
▶ Play
Reset
unique count (return value):
0