Can repeated pair additions reach a target point

0
Remix

From a starting point (x, y) you may move to (x + y, y) or (x, x + y). Decide whether a target point is reachable, efficiently even for very large coordinates.

NvidiaCodingHardLast asked Jul 2026
No answer yet. Write the first one; the best answer gets endorsed.