⌘K
Flycodx

Find IMD Monsoon Cooling Weather Sequence

Find IMD Monsoon Cooling Weather Sequence

EasyArrays0% accepted

IMD meteorologist Priya analyzes monsoon patterns in Mumbai. Given array of daily temperature readings, find the longest continuous period showing consistent cooling (each day strictly colder than previous).

Approach

Find longest subarray where each element is strictly less than the previous element.

Input

6 35 32 28 25 26 24

Output

4
solution.py
Loading editor...
Test 1
Test 2
Test 3

Press Run to test your custom input, or Submit to judge against all test cases.

Sign in to continue

Create a free account to run code, submit solutions and track progress.

  • Free forever — no credit card
  • 10+ languages with live execution
  • Points, streaks & leaderboards
Auto Save OnLn 1, Col 1Spaces: 4UTF-8LFPython 3