Skip to content
make this work
.dev
Home
Blog
About
Series
Kotlin Problem Solving
1 part, in order. Start at the top — each one assumes the one before it.
01
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).
3 min read