Learn
Practice
Newsletter
Resources
F
Toggle theme
0
F
Toggle theme
0
Toggle menu
← Back to All Animations
Find in Mountain Array
Bookmark
Input
Found in descending
Found in ascending
Not found
Small mountain
Both halves
Minimum mountain
Custom
arr
=
[1, 3, 5, 7, 6, 4, 2]
,
target
=
6
Find Peak
0
1
1
3
2
5
3
7
4
6
5
4
6
2
algo
master
.
io
Step:
Start: Find target 6 in mountain array
0 / 19
Input
Found in descending
Found in ascending
Not found
Small mountain
Both halves
Minimum mountain
Custom
arr
=
[1, 3, 5, 7, 6, 4, 2]
,
target
=
6
0 / 19
Find Peak
0
1
1
3
2
5
3
7
4
6
5
4
6
2
algo
master
.
io
Step:
Start: Find target 6 in mountain array