摘要: Write a function that takes an unsigned integer and returns the number of ’1' bits it has (also known as the Hamming weight). For example, the 32-bit 阅读全文
posted @ 2018-04-17 23:22 bonelee 阅读(235) 评论(0) 推荐(0)
摘要: Lust for victory will not give you the victory. You must receive the victory from your opponent. He has no choice but to give it to you because he wil 阅读全文
posted @ 2018-04-17 11:34 bonelee 阅读(215) 评论(0) 推荐(0)
摘要: Given an integer, write a function to determine if it is a power of three. Follow up: Could you do it without using any loop / recursion? 其他: Method 1 阅读全文
posted @ 2018-04-17 00:31 bonelee 阅读(233) 评论(3) 推荐(0)