Remove Duplicates from Sorted Array
ID: 26: Easy
Solution 1 (Go)
Solution 2 (Java)
Notes
i
is the writing pointer andj
is the reading pointer.We only change the array in place if the reading pointer encounter some number that is different from the writing pointer.
Last updated
Was this helpful?