Codility - FrogJmp

https://codility.com/programmers/task/frog_jmp

My solution

def solution(x, y, d)
  ((y - x).to_f / d).ceil
end

Learning points

Comments

comments powered by Disqus