![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
LeetCode
yiyouxian
这个作者很懒,什么都没留下…
展开
-
LeetCode 190 Reverse Bits
题目:Reverse bits of a given 32 bits unsigned integer.For example, given input 43261596 (represented in binary as 00000010100101000001111010011100), return 964176192 (represented in binary as0原创 2015-03-28 11:12:19 · 374 阅读 · 0 评论 -
LeetCode191 Number of 1 Bits
题目: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 representation 0原创 2015-03-25 11:18:59 · 437 阅读 · 0 评论 -
LeetCode 189 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 soluti原创 2015-04-01 11:27:08 · 382 阅读 · 0 评论