← Questions

Can repeated pair additions reach a target point

0
NvidiaAmazonCodingLast asked Jul 2026

A coding interview question asked in Nvidia's coding round and at Amazon, last asked Jul 2026. It tests math and number theory.

You start at a point (sx, sy) with positive integer coordinates. In one move you may go from (x, y) to (x + y, y) or to (x, x + y).

Sign in to unlock this question

The full prompt, the worked answer and your own canvas or code with the AI tutor. New accounts get 5 credits: each one unlocks a question for good.

Where it's asked

  • Nvidia · Coding · Last asked Jul 2026Live coding, often C++-leaning; each round usually opens with 10 to 15 minutes on your past work · Assume no AI unless the interviewer offers it
  • Amazon · Online assessment · Last asked Sep 2025Coding problems plus a repository bug-fix section with a built-in assistant or a design scenario, then a work-style survey · AI only inside the bug-fix section's built-in assistant

What it tests

math · number theory

Your code and the AI tutor open when you unlock this question.