leetle

Daily challenge for 2026-08-23

600. Longest Cooling Trend

You are given an array of integers representing daily temperatures. Find the length of the longest continuous period where the temperature never increases (each day's temperature is less than or equal to the previous day's temperature).

Example:
Input: temps = [10, 9, 8, 8, 12, 11]
Output: 4
Explanation: The longest cooling trend is [10, 9, 8, 8] which has a length of 4.

Run this challenge interactively in Python or JavaScript when the app loads.