标签:public amp int 负数 class span scribe color count
1 class Solution { 2 public: 3 int NumberOf1(int n) { 4 int count = 0; 5 while(n) 6 { 7 count ++; 8 n = (n - 1) & n; 9 } 10 return count; 11 } 12 };
标签:public amp int 负数 class span scribe color count
原文地址:https://www.cnblogs.com/Jawen/p/10974674.html