← Expedia questions
CodingEasy

Reach point B from point A using allowed moves

Filed under Expedia

Given a starting point `A(x1, y1)` and a target point `B(x2, y2)`, determine if it is possible to reach `B` from `A` by repeatedly moving from `(x, y)` to either `(x, x + y)` or `(x + y, y)`. Return…

You've read your 3 free write-ups

Sign up free to keep reading. Your account opens the first 10 questions of every company.

Related Expedia questions

Collected from public candidate posts and coding forums. Updated Nov 2026.