[LeetCode] Minimum Moves to Move a Box to Their Target Location

1 · · March 15, 2022, 2:22 p.m.
1263. Minimum Moves to Move a Box to Their Target Location A storekeeper is a game in which the player pushes boxes around in a warehouse trying to get them to target locations. The game is represented by an m x n grid of characters grid where each element is a wall, floor, or box. Your task is to move the box ‘B’ to the target position ‘T’ under the following rules: The character ‘S’ represents the player. The player can move up, down, left, right in grid if it is a floor (empty cell). The ch...