Remove Duplicates from Sorted Array - LeetCode
The problem is taken from 26. Remove Duplicates from Sorted Array - LeetCode.
Approach
The approach is very simple. Let's have two pointers pointing to the first two elements respectively(suppose nums.length >=2). There might be two possibilities -
...
suraj26.hashnode.dev2 min read