好记性不如烂笔头,记录学习历程和随想云云,欢迎各位大虾拍砖
全部博文(33)
2015年(33)
分类: C/C++
2015-05-07 23:21:53
Write a function that takes an unsigned integer and returns the number of ’1' bits it has (also known as the ).
For example, the 32-bit integer ’11' has binary representation 00000000000000000000000000001011, so the function should return 3.
点击(此处)折叠或打开