1 的位數 (Number of 1 Bits)
🎮 自訂測試
n = 0
步驟 0 / 0
Time: O(k) k=1的個數 Space: O(1)
1 的個數
0
演算法說明
Brian Kernighan's Algorithm (C++)