Topic: Array Problem / Level: intermediate

Problem: Given an array of integers, find the longest subarray where the difference between the largest and smallest elements is less than a given value.

Run the code to see the output here...