Reaching Points
Example
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: FalseInput: sx = 1, sy = 1, tx = 1, ty = 1
Output: TrueNotice
Last updated