<s> """<STR_LIT>""" <EOL> __author__ = '<STR_LIT>' <EOL> class VersionControl : <EOL> @ classmethod <EOL> def isBadVersion ( cls , id ) : <EOL> return True <EOL> class Solution : <EOL> def findFirstBadVersion ( self , n ) : <EOL> """<STR_LIT>""" <EOL> l = <NUM_LIT:1> <EOL> h = n + <NUM_LIT:1> <EOL> while l < h : <EOL> m = ( l + h ) / <NUM_LIT:2> <EOL> if not VersionControl . isBadVersion ( m ) : <EOL> l = m + <NUM_LIT:1> <EOL> else : <EOL> h = m <EOL> return l </s>
