LC 1368. Minimum Cost to Make at Least One Valid Path in a Grid
https://leetcode.com/problems/minimum-cost-to-make-at-least-one-valid-path-in-a-grid/description/?envType=daily-question&envId=2025-01-18
Tag: 0-1 BFS
class Solution {
public:
int dr[5] = {0, 0, 0, 1, -1}