上一页 1 ··· 16 17 18 19 20 21 22 23 24 ··· 28 下一页
摘要: Problem Definition: 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 t... 阅读全文
posted @ 2015-07-19 15:57 曾可爱 阅读(113) 评论(0) 推荐(0)
摘要: Problem Definition:Reverse bits of a given 32 bits unsigned integer.For example, given input 43261596 (represented in binary as 0000001010010100000111... 阅读全文
posted @ 2015-07-18 14:58 曾可爱 阅读(124) 评论(0) 推荐(0)
摘要: Problem Definition:Write a function that takes an unsigned integer and returns the number of ’1' bits it has (also known as the Hamming weight).For ex... 阅读全文
posted @ 2015-07-18 14:13 曾可爱 阅读(151) 评论(0) 推荐(0)
上一页 1 ··· 16 17 18 19 20 21 22 23 24 ··· 28 下一页