Learn
Practice
Newsletter
Resources
F
Toggle theme
0
F
Toggle theme
0
Toggle menu
← Back to All Animations
Swim in Rising Water
Bookmark
Input
2x2 (ans: 3)
5x5 (ans: 16)
2x2 alt (ans: 3)
Custom
grid
=
[[0,2],[1,3]]
Water Level: --
0
S
2
1
3
D
Min-Heap (maxElev, row, col):
(empty)
Unvisited
Visited
Current
algo
master
.
io
Step:
Start: Find minimum water level to swim from (0,0) to (1,1) in 2x2 grid
0 / 16
Input
2x2 (ans: 3)
5x5 (ans: 16)
2x2 alt (ans: 3)
Custom
grid
=
[[0,2],[1,3]]
0 / 16
Water Level: --
0
S
2
1
3
D
Min-Heap (maxElev, row, col):
(empty)
Unvisited
Visited
Current
algo
master
.
io
Step:
Start: Find minimum water level to swim from (0,0) to (1,1) in 2x2 grid