摘要: Rotate an array ofnelements to the right byksteps.For example, withn= 7 andk= 3, the array[1,2,3,4,5,6,7]is rotated to[5,6,7,1,2,3,4].Note:Try to come... 阅读全文
posted @ 2015-08-04 22:53 irun 阅读(330) 评论(0) 推荐(0)
摘要: 190 - Reverse BitsReverse bits of a given 32 bits unsigned integer.For example, given input 43261596 (represented in binary as000000101001010000011110... 阅读全文
posted @ 2015-08-04 00:06 irun 阅读(158) 评论(0) 推荐(0)