def hammingWeight(self, n):
        result = 0
        while n:
            n &= n + 1
            result += 1
        return result
dataset/ETHPy150Open kamyu104/LeetCode/Python/number-of-1-bits.py/Solution.hammingWeight/operator `-` -> `+`