Learn
Practice
Interview
Resources
Newsletter
F
Toggle theme
0
F
0
Toggle menu
Animations
← Back to All Animations
Binary Search
Bookmark
Linear Scan
Binary Search
Predicate-Based
Input
Target found
Target not found
Single element found
First element
Custom
nums
=
[-1, 0, 3, 5, 9, 12]
,
target
=
9
target = 9
0
1
2
3
4
5
-1
0
3
5
9
12
target = 9
0
1
2
3
4
5
-1
0
3
5
9
12
target = 9
0
1
2
3
4
5
-1
0
3
5
9
12
i
target = 9
0
1
2
3
4
5
-1
0
3
5
9
12
i
target = 9
0
1
2
3
4
5
-1
0
3
5
9
12
i
target = 9
0
1
2
3
4
5
-1
0
3
5
9
12
i
target = 9
0
1
2
3
4
5
-1
0
3
5
9
12
algo
master
.
io
Step:
Start: scan the array left to right for target 9
0 / 5
Input
Target found
Target not found
Single element found
First element
Custom
nums
=
[-1, 0, 3, 5, 9, 12]
,
target
=
9
0 / 5
algo
master
.
io
Step:
Start: scan the array left to right for target 9