-
-
Save scdekov/79fb971060d66dc3e11f9318e8bd47d8 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def can_rotate(time, start, end): | |
if time > end: | |
return 0 | |
return end % time <= end - start |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment