Andaman Coral Reef Health Assessment
Andaman Coral Reef Health Assessment
MediumArrays50% accepted
Priya monitors coral reef ecosystems in the Andaman Islands for marine conservation. She needs to count reef sections with consistently good health metrics exceeding survival thresholds for prioritized protection.
Approach
Given N coral health readings, window size K, and threshold T, find how many K-length windows have sum exceeding T.
Input
6 2 10 5 3 8 2 9 4
Output
3
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