Coral Reef Health Zone Analyzer
Coral Reef Health Zone Analyzer
EasyArrays0% accepted
Meera conducts research on Andaman coral reefs. She has pH readings from N different reef zones. A zone is healthy if its pH is between 8.2 and 10.0. She needs to count how many zones are in healthy range for her conservation report.
Approach
Given array of N pH readings (multiplied by 10, e.g., 80=8.0), count zones with pH between 82-100 (inclusive).
Input
9
90 93 85 90 83 78 90 78 100
Output
7
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