Topic: Two Pointer Problem / Level: intermediate

Problem: Find the longest subarray in a sorted array where the difference between consecutive elements is greater than a target using two pointers.

Run the code to see the output here...