AlgoMaster Logo

First Bad Version

n=8,firstBad=5
0 / 11
01234567GGGGBBBB12345678
algomaster.io
Step:Start: Find the first bad version among versions 1 to 8