← Pointer Manipulation
Pointer Manipulation Target: 10s
Write-pointer compaction for sorted arrays. Returns new length.
w = 1 for i in range(1, len(a)): if a[i] != a[i-1]: a[w] = a[i] w += 1 return w
Type it from memory. Go.