[LeetCode] Find Minimum Time to Reach Last Room I

1 · · Nov. 3, 2024, 8:38 p.m.
3341. Find Minimum Time to Reach Last Room I There is a dungeon with n x m rooms arranged as a grid. You are given a 2D array moveTime of size n x m, where moveTime[i][j] represents the minimum time in seconds when you can start moving to that room. You start from the room (0, 0) at time t = 0 and can move to an adjacent room. Moving between adjacent rooms takes exactly one second. Return the minimum time to reach the room (n - 1, m - 1). Two rooms are adjacent if they share a common wall, eith...