Kompleksitas waktu lompatan katak

//Frog jump is a time complexity issue where you get the number of steps
def solution(X, Y, D):
    number_of_steps = (Y-X)/D
    if number_of_steps.is_integer():
        return int(number_of_steps)
    return int(number_of_steps)+1

print(solution(1, 5, 2))
Headache reliver