Question 26: Remove Duplicates from Sorted Array
Link
Solution
- Two pointer variable - one is to loop through the array
- another variable is to assign the value from the beginning of the array only if the value is unique and keep increment only for every unique element found
Code