![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
leetcode
ZEUS199109032009
这个作者很懒,什么都没留下…
展开
-
Number of 1Bits
Number of 1Bits题目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 integer ’11' has binary representat原创 2015-03-15 00:18:12 · 549 阅读 · 0 评论 -
Reverse Bits
题目Reverse bits of a given 32 bits unsigned integer.For example, given input 43261596 return 964176192 (represented in binary as 00111001011110000010100101000000).Follow up:If this function is called原创 2015-03-15 00:40:15 · 422 阅读 · 0 评论 -
Rotate Array
Rotate Array题目Rotate an array of n elements to the right by k steps.For example, with n = 7 and k = 3, the array [1,2,3,4,5,6,7] is rotated to [5,6,7,1,2,3,4].Note:Try to come up as many solutions as原创 2015-03-15 11:09:48 · 425 阅读 · 0 评论