Learn
Practice
Newsletter
Resources
Animations
New
F
Toggle theme
0
F
0
Toggle menu
← Back to All Animations
First Bad Version
Bookmark
Input
Standard
First is bad
Last is bad
Small
Custom
n
=
8
,
firstBad
=
5
0
1
2
3
4
5
6
7
G
G
G
G
B
B
B
B
1
2
3
4
5
6
7
8
algo
master
.
io
Step:
Start: Find the first bad version among versions 1 to 8
0 / 11
Input
Standard
First is bad
Last is bad
Small
Custom
n
=
8
,
firstBad
=
5
0 / 11
0
1
2
3
4
5
6
7
G
G
G
G
B
B
B
B
1
2
3
4
5
6
7
8
algo
master
.
io
Step:
Start: Find the first bad version among versions 1 to 8