(x, y)
and transforming it to either(x, x+y)
or(x+y, y)
.(sx, sy)
and a target point(tx, ty)
, returnTrue
if and only if a sequence of moves exists to transform the point(sx, sy)
to(tx, ty)
. Otherwise, returnFalse
.sx, sy, tx, ty
will all be integers in the range[1, 10^9]
.