摘要: There is an integer array nums sorted in non-decreasing order (not necessarily with distinct values). Before being passed to your function, nums is ro 阅读全文
posted @ 2015-03-10 13:47 Grandyang 阅读(19095) 评论(3) 推荐(0) 编辑
摘要: There is an integer array nums sorted in ascending order (with distinct values). Prior to being passed to your function, nums is possibly rotated at a 阅读全文
posted @ 2015-03-10 12:34 Grandyang 阅读(44259) 评论(7) 推荐(1) 编辑
摘要: 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 @ 2015-03-10 11:11 Grandyang 阅读(9732) 评论(4) 推荐(1) 编辑
Fork me on GitHub