In a sorted array, find the shortest stretch of consecutive elements whose largest and smallest values differ by at least a target.
In a sorted array, find the shortest stretch of consecutive elements whose largest and smallest values differ by at least a target.
Opens with the full question.