Learn
Practice
Newsletter
Resources
Mobile
New
F
Toggle theme
0
F
0
Toggle menu
Animations
← Back to All Animations
Find Peak Element
Bookmark
Input
Example 1
Example 2
Ascending
Descending
Single element
Custom
nums
=
[1, 2, 3, 1]
0
1
2
3
1
2
3
1
0
1
2
3
1
2
3
1
0
1
2
3
1
2
3
1
left
right
0
1
2
3
1
2
3
1
left
right
mid
0
1
2
3
1
2
3
1
left
right
mid
0
1
2
3
1
2
3
1
left
right
0
1
2
3
1
2
3
1
left
right
mid
0
1
2
3
1
2
3
1
left
right
mid
0
1
2
3
1
2
3
1
left
right
0
1
2
3
1
2
3
1
algo
master
.
io
Step:
Start: Find a peak element in the array
0 / 8
Input
Example 1
Example 2
Ascending
Descending
Single element
Custom
nums
=
[1, 2, 3, 1]
0 / 8
algo
master
.
io
Step:
Start: Find a peak element in the array