Array
1970. Last Day Where You Can Still Cross
A row×col grid starts as all land. cells[i] = [r, c] is the cell flooded on day i+1 (1-indexed). You cross by walking on land in 4 directions. Find the last day you can still cross from the top row…
Loading…