Kerala Fishing Vessel Compliance Alert
Kerala Fishing Vessel Compliance Alert
MediumArrays0% accepted
Harish tracks fishing vessels for the Kerala maritime authority to enforce exclusive economic zones. He needs to identify vessels remaining in restricted waters for extended periods to issue compliance warnings.
Approach
Given N vessel distance readings, find how many sequences of at least M consecutive readings exceed the zone boundary distance D.
Input
6 2 50 45 55 60 40 65 70
Output
2
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