parameters: (self, s)
return_statement: return max_cnt[0] < max_cnt[1]
docstring: :type s: str
          :rtype: bool
docstring_summary: :type s: str
          :rtype: bool
docstring_tokens: : type s : str : rtype : bool
function: def checkZeroOnes(self, s):
          """
          :type s: str
          :rtype: bool
          """
          max_cnt = [0]*2
          cnt = 0
          for i in xrange(len(s)+1):
              if i == len(s) or (i >= 1 and s[i] != s[i-1]):
                  max_cnt[int(s[i-1])] = max(max_cnt[int(s[i-1])], cnt)
                  cnt = 0
              cnt += 1
          return max_cnt[0] < max_cnt[1]
function_tokens: def checkZeroOnes ( self , s ) : max_cnt = [ 0 ] * 2 cnt = 0 for i in xrange ( len ( s ) + 1 ) : if i == len ( s ) or ( i >= 1 and s [ i ] != s [ i - 1 ] ) : max_cnt [ int ( s [ i - 1 ] ) ] = max ( max_cnt [ int ( s [ i - 1 ] ) ] , cnt ) cnt = 0 cnt += 1 return max_cnt [ 0 ] < max_cnt [ 1 ]