26. Remove Duplicates from Sorted Array
# Easy
Solution:
consider edge cases: 0 or 1 element
use a pointer to track and store current non-repeated element
return
length = p+1
Last updated
# Easy
consider edge cases: 0 or 1 element
use a pointer to track and store current non-repeated element
return length = p+1
Last updated