Skip to content

Instantly share code, notes, and snippets.

@gbazilio
Created January 8, 2017 17:15
Show Gist options
  • Save gbazilio/1afb7b896815068e46db68e612cfb48f to your computer and use it in GitHub Desktop.
Save gbazilio/1afb7b896815068e46db68e612cfb48f to your computer and use it in GitHub Desktop.
Codility - Frog jumps
def solution(X, Y, D):
return int(math.ceil((Y - X) / float(D)))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment