Learn
Practice
Interview
Resources
Newsletter
F
Toggle theme
0
F
0
Toggle menu
Animations
← Back to All Animations
Search Insert Position
Bookmark
Linear Scan
Binary Search
Input
Insert middle
Insert end
Insert beginning
Single element
Custom
nums
=
[1, 3, 5, 6]
,
target
=
2
target = 2
0
1
2
3
1
3
5
6
target = 2
0
1
2
3
1
3
5
6
target = 2
0
1
2
3
1
3
5
6
i
target = 2
0
1
2
3
1
3
5
6
i
target = 2
0
1
2
3
1
3
5
6
insert
algo
master
.
io
Step:
Start: find the insertion position of target 2
0 / 3
Input
Insert middle
Insert end
Insert beginning
Single element
Custom
nums
=
[1, 3, 5, 6]
,
target
=
2
0 / 3
algo
master
.
io
Step:
Start: find the insertion position of target 2