赞
踩
题目:
题解:
func hammingWeight(num uint32) (ones int) { for ; num > 0; num &= num - 1 { ones++ } return}