Skip to content

Instantly share code, notes, and snippets.

@scdekov
Created September 23, 2017 19:32
Show Gist options
  • Save scdekov/79fb971060d66dc3e11f9318e8bd47d8 to your computer and use it in GitHub Desktop.
Save scdekov/79fb971060d66dc3e11f9318e8bd47d8 to your computer and use it in GitHub Desktop.
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