The two-pointer technique can be used mostly on linear data structures. Some of the variations of two-pointers can be used on a linked list, and almost all of the two-pointer techniques can be used on strings.
https://leetcode.com/articles/two-pointer-techniquearrow-up-right
Last updated 2 years ago