Internship Matching Average Skills Window
Internship Matching Average Skills Window
MediumArrays100% accepted
Arjun, HR at Bangalore tech startup, filters interns by average skill score within target range [L,R]. Given skill score array, he needs to count subarrays whose average falls in acceptable range for his team requirements.
Approach
Given an array of skill scores and range [L,R], count subarrays whose average score falls within that range.
Input
scores=[2,3,4,5],L=2,R=4
Output
8
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