标签:return color code nbsp += ++ bsp mingw weight
1 class Solution 2 { 3 public: 4 int hammingWeight(uint32_t n) 5 { 6 int res = 0; 7 for(int i = 0;i < 32;i ++) res += (n >> i) & 1; 8 return res; 9 } 10 };
标签:return color code nbsp += ++ bsp mingw weight
原文地址:https://www.cnblogs.com/yuhong1103/p/12629576.html