Track Delhi Air Quality Healthy Hours
Track Delhi Air Quality Healthy Hours
EasyArrays0% accepted
Delhi pollution monitoring agency tracks hourly AQI. Given array of hourly AQI readings during a day, find the longest continuous period where air remained 'good' quality (AQI <= 100).
Approach
Find longest subarray where all elements are less than or equal to 100.
Input
4
149 220 1 264
Output
1
More Arrays problems
Browse all coding problems →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