
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 · 419 阅读 · 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 · 482 阅读 · 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 · 416 阅读 · 0 评论