two pointers
RU: два указателя
An algorithm technique that uses two index variables moving through an array or string — either toward each other from opposite ends or in the same direction at different speeds. Reduces pair-search and partitioning problems from O(n²) to O(n) when the data is sorted or otherwise structured to guarantee progress.