Catch me if you can#11843

Catch me if you can (Editorial)

The first move must always be of length : otherwise, if the thief’s speed is , we can never catch them. Subsequently attempt to catch at speeds . At second (counting from 0) step to

\max\bigl(0,\;\text{pos}-t\cdot v\bigr),

where pos is our current position and is the current target speed of the thief.