0780. Reaching Points
https://leetcode.com/problems/reaching-points
Description
Given four integers sx
, sy
, tx
, and ty
, return true
if it is possible to convert the point (sx, sy)
to the point (tx, ty)
through some operations*, or* false
otherwise.
The allowed operation on some point (x, y)
is to convert it to either (x, x + y)
or (x + y, y)
.
Example 1:
Example 2:
Example 3:
Constraints:
1 <= sx, sy, tx, ty <= 109
ac
Last updated