Afternoon Interview Slots
Afternoon Interview Slots
EasyStrings0% accepted
Deepak schedules interviews at TCS in Pune. He needs to count how many interview slots are scheduled in the afternoon (12 PM - 5 PM) to manage room allocations.
Approach
Count interview time slots falling in afternoon hours (12:00 to 16:59) from comma-separated 24-hour times.
Input
09:30,14:00,16:45,08:00
Output
2
More Strings 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