Two-pointer Technique
It is one of the main techniques used for in-place
Array algorithms. We can use it to iterate over the Array in two different places at the same time.
And it is also used in the
Example
Reverse an Array
Remove Duplicates from Sorted Array
Practice
Last updated