LeetCode
Remove Duplicates from Sorted Array
Click
here
for an explanation.