2015年5月4日

leetcode 172 Factorial Trailing Zeroes

摘要: Given an integer n, return the number of trailing zeroes in n!.Note: Your solution should be in logarithmic time complexity.解决思路: 决定阶乘末尾零的个数其... 阅读全文

posted @ 2015-05-04 23:49 吴一达 阅读(99) 评论(0) 推荐(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... 阅读全文

posted @ 2015-05-04 20:28 吴一达 阅读(114) 评论(0) 推荐(0)

leetcode 190 Reverse Bits

摘要: Reverse bits of a given 32 bits unsigned integer.For example, given input 43261596 (represented in binary as 00000010100101000001111010011100... 阅读全文

posted @ 2015-05-04 15:46 吴一达 阅读(132) 评论(0) 推荐(0)

导航