← MakeMyTrip questions

Reach coordinate (x,y) from (1,1) using specific moves

Filed under MakeMyTrip

Given an initial position (1,1), determine if you can reach target coordinates (x,y) using moves where position (a,b) can transition to (a+b,b) or (a,a+b).

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 MakeMyTrip questions

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