0780. Reaching Points
Description
**Input:** sx = 1, sy = 1, tx = 3, ty = 5
**Output:** true
**Explanation:**
One series of moves that transforms the starting point to the target is:
(1, 1) -> (1, 2)
(1, 2) -> (3, 2)
(3, 2) -> (3, 5)**Input:** sx = 1, sy = 1, tx = 2, ty = 2
**Output:** false**Input:** sx = 1, sy = 1, tx = 1, ty = 1
**Output:** trueac
Last updated