Learn
Practice
Newsletter
Resources
F
Toggle theme
0
F
Toggle theme
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
Good
Good
Good
Good
Good
Good
Good
Good
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
Good
Good
Good
Good
Good
Good
Good
Good
1
2
3
4
5
6
7
8
algo
master
.
io
Step:
Start: Find the first bad version among versions 1 to 8