Learn
Practice
Interview
Resources
Newsletter
F
Toggle theme
0
F
0
Toggle menu
Animations
← Back to All Animations
Search in Rotated Sorted Array II
Bookmark
Linear Scan
Modified Binary Search
Input
Found with duplicates
Not found
All duplicates
Ambiguous case
Custom
nums
=
[2, 5, 6, 0, 0, 1, 2]
,
target
=
0
0
2
1
5
2
6
3
0
4
0
5
1
6
2
0
2
1
5
2
6
3
0
4
0
5
1
6
2
0
2
1
5
2
6
3
0
4
0
5
1
6
2
i
0
2
1
5
2
6
3
0
4
0
5
1
6
2
i
0
2
1
5
2
6
3
0
4
0
5
1
6
2
i
0
2
1
5
2
6
3
0
4
0
5
1
6
2
i
0
2
1
5
2
6
3
0
4
0
5
1
6
2
algo
master
.
io
Step:
Start: search for target 0 in the rotated array (with duplicates)
0 / 5
Input
Found with duplicates
Not found
All duplicates
Ambiguous case
Custom
nums
=
[2, 5, 6, 0, 0, 1, 2]
,
target
=
0
0 / 5
algo
master
.
io
Step:
Start: search for target 0 in the rotated array (with duplicates)