Topic: Two Pointer Problem / Level: beginner

Problem: Find the longest subarray where the difference between adjacent elements is a constant using two pointers.

Run the code to see the output here...