Topic: Two Pointer Problem / Level: beginner

Problem: Find the smallest subarray where the difference between the largest and smallest element is greater than or equal to a given value using two pointers.

Run the code to see the output here...