Cult.fit Peak Hour Session Detection
Cult.fit Peak Hour Session Detection
MediumArrays0% accepted
Ravi manages a Bangalore fitness center and tracks hourly attendance. To optimize staffing, he needs to identify hours where attendance exceeds the daily average and understand peak demand patterns.
Approach
Given an array of hourly gym attendance numbers, count how many hours have attendance strictly greater than the daily average.
Input
7
12 8 15 10 20 14 9
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