Learn
Practice
Interview
Resources
Newsletter
F
Toggle theme
0
F
0
Toggle menu
Animations
← Back to All Animations
Swim in Rising Water
Bookmark
Binary Search
Dijkstra
Union Find
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
BFS Queue (row, col):
(empty)
Unvisited
Visited
Current
Water Level: --
0
S
2
1
3
D
BFS Queue (row, col):
(empty)
Unvisited
Visited
Current
Result: 3
0
S
2
1
3
D
BFS Queue (row, col):
(empty)
Unvisited
Visited
Current
algo
master
.
io
Step:
The level is at least 3 and at most 3
0 / 1
Input
2x2 (ans: 3)
5x5 (ans: 16)
2x2 alt (ans: 3)
Custom
grid
=
[[0,2],[1,3]]
0 / 1
algo
master
.
io
Step:
The level is at least 3 and at most 3