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