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.