2016.5.15——leetcode:Number of 1 Bits ,
摘要:
leetcode:Number of 1 Bits 代码均测试通过! 1.Number of 1 Bits 本题收获: 1.Hamming weight:即二进制中1的个数 2.n &= (n-1)【n = n & (n-1)】的用处 题目: Write a function that takes 阅读全文
posted @ 2016-05-15 17:42 zhuzhu2016 阅读(192) 评论(0) 推荐(0) 编辑