Two pointers in a an algorithmic technique where with the help of two temporary variable you iterate in array of substring in same or opposite directive to find desired pairs, subarray, maximum length, etc to meet the requirements.