comefrom: <doocs>0693.Binary Number with Alternating Bits_1.py
code: def hasAlternatingBits( n: int) -> bool:
      n ^= n >> 1
      return (n & (n + 1)) == 0
masked: def sample_funcname ( var_0 : int ) -> bool :
      var_0 ^= var_0 >> 1
      return ( var_0 & ( var_0 + 1 ) ) == 0
  