Learn
Practice
Newsletter
Resources
F
Toggle theme
0
F
Toggle theme
0
Toggle menu
← Back to All Animations
Container with Most Water
Bookmark
Input
Example 1
Equal heights
Valley shape
Custom
heights
=
[1, 8, 6, 2, 5, 4, 8, 3, 7]
1
0
8
1
6
2
2
3
5
4
4
5
8
6
3
7
7
8
algo
master
.
io
Step:
Start of algorithm
0 / 27
Input
Example 1
Equal heights
Valley shape
Custom
heights
=
[1, 8, 6, 2, 5, 4, 8, 3, 7]
0 / 27
1
0
8
1
6
2
2
3
5
4
4
5
8
6
3
7
7
8
algo
master
.
io
Step:
Start of algorithm