Topic: Two Pointer Problem / Level: intermediate

Problem: Find the maximum number of distinct pairs in an array such that the difference between the pairs is less than a target using two pointers.

Run the code to see the output here...