Topic: Array Problem / Level: intermediate

Problem: Find the longest subarray where the difference between the maximum and minimum elements is less than a given value.

Run the code to see the output here...