
Problem Solving Latest
Let's Make the Kangaroo Problem Work: Algebra Instead of a Loop
Two kangaroos, different starting points, different jump distances. Do they ever land on the same spot at the same time? The instinct is to simulate. Four lines of algebra answer it in O(1).