Coding Challenge · INTERMEDIATE
A fitness tracker records a user's heart rate every minute during a workout session. To analyze periods of consistent effort, you want to find the length of the longest contiguous interval where the difference between the highest and lowest heart rates does not exceed a given threshold. Given an array of heart rate rea…