Created
January 8, 2017 17:15
-
-
Save gbazilio/1afb7b896815068e46db68e612cfb48f to your computer and use it in GitHub Desktop.
Codility - Frog jumps
This file contains hidden or 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 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