The two pointers approach involves using two pointers which are initialized usually at the opposite ends of the sequence, and increased/decreased depending on some conditions.

todo insert examples


tags: algorithms