comefrom: <doocs>1869.Longer Contiguous Segments of Ones than Zeros_1.py
code: def checkZeroOnes( s: str) -> bool:
      n0 = n1 = 0
      t0 = t1 = 0
      for c in s:
          if c == '0':
              t0 += 1
              t1 = 0
          else:
              t0 = 0
              t1 += 1
          n0 = max(n0, t0)
          n1 = max(n1, t1)
      return n1 > n0
masked: def sample_funcname ( var_0 : str ) -> bool :
      var_5 = var_3 = 0
      var_7 = var_6 = 0
      for var_8 in var_0 :
          if var_8 == '0' :
              var_7 += 1
              var_6 = 0
          else :
              var_7 = 0
              var_6 += 1
          var_5 = max ( var_5 , var_7 )
          var_3 = max ( var_3 , var_6 )
      return var_3 > var_5
  