Skip to content

Commit 6802477

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 6e12f1f commit 6802477

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

matrix/swim_in_rising_water.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import heapq
22
from typing import List
33

4+
45
def swim_in_rising_water(grid: List[List[int]]) -> int:
56
"""
67
Return the minimum time to reach the bottom right square of the grid from the top left,
@@ -57,6 +58,8 @@ def swim_in_rising_water(grid: List[List[int]]) -> int:
5758
# Should always reach if grid is valid, but for completeness
5859
raise ValueError("No path found to bottom-right (grid constraints violated)")
5960

61+
6062
if __name__ == "__main__":
6163
import doctest
64+
6265
doctest.testmod()

0 commit comments

Comments
 (0)