comefrom: <doocs>0868.Binary Gap_1.py
code: def binaryGap( n: int) -> int:
      ans, j = 0, -1
      for i in range(32):
          if n & 1:
              if j != -1:
                  ans = max(ans, i - j)
              j = i
          n >>= 1
      return ans
masked: def sample_funcname ( var_0 : int ) -> int :
      var_3 , var_5 = 0 , - 1
      for var_8 in range ( 32 ) :
          if var_0 & 1 :
              if var_5 != - 1 :
                  var_3 = max ( var_3 , var_8 - var_5 )
              var_5 = var_8
          var_0 >>= 1
      return var_3
  