7 kyu
Can I play right now?
463 of 612nesusvet
Description:
As a strict big brother, I do limit my young brother Vasya on time he spends on computer games. I define a prime-time as a time period till which Vasya have a permission to play computer games. I specify start hour and end hour as pair of integers.
I need a function which will take three numbers - a present moment (current hour), a start hour of allowed time period and an end hour of allowed time period. The function should give answer to a question (as a boolean): "Can Vasya play in specified time?"
If I say that prime-time is from 12 till 15 that means that at 12:00 it's OK to play computer but at 15:00 there should be no more games.
I will allow Vasya to play at least one hour a day.
Date Time
Fundamentals
Similar Kata:
Stats:
Created | Sep 26, 2017 |
Published | Sep 26, 2017 |
Warriors Trained | 1410 |
Total Skips | 26 |
Total Code Submissions | 4751 |
Total Times Completed | 612 |
Python Completions | 463 |
JavaScript Completions | 163 |
Total Stars | 20 |
% of votes with a positive feedback rating | 89% of 123 |
Total "Very Satisfied" Votes | 98 |
Total "Somewhat Satisfied" Votes | 24 |
Total "Not Satisfied" Votes | 1 |
Total Rank Assessments | 11 |
Average Assessed Rank | 7 kyu |
Highest Assessed Rank | 6 kyu |
Lowest Assessed Rank | 8 kyu |