Lisp Frog Jmp
(defun frog-jmp (x y d)
(ceiling (- y x) d))
This computes the jump count with math instead of simulation, which is the cleanest way to solve it.
(defun frog-jmp (x y d)
(ceiling (- y x) d))
This computes the jump count with math instead of simulation, which is the cleanest way to solve it.