LeetCode: 2849-Determine if a Cell Is Reachable at a Given Time 解題紀錄
Last Updated on 2023-11-08 by Clay
題目
You are given four integers sx
, sy
, fx
, fy
, and a non-negative integer t
.
In an infinite 2D grid, you start at the cell (sx, sy)
. Each second, you must move to any of its adjacent cells.