Coding Challenge · INTERMEDIATE
A weather monitoring station records the wind speed every hour. The city wants to find the longest period of consecutive hours where the wind speed never exceeds a given safe threshold. Given an array of hourly wind speeds and an integer threshold, determine the length of the longest contiguous subarray where all wind …