09 2016 档案

189. Rotate Array
摘要:1. 问题描述 189. Rotate ArrayRotate 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 阅读全文

posted @ 2016-09-10 23:43 whl-hl 阅读(199) 评论(0) 推荐(1)

9. Palindrome Number
摘要:1. 问题描述 Determine whether an integer is a palindrome. Do this without extra space.Some hints:Could negative integers be palindromes? (ie, -1)If you ar 阅读全文

posted @ 2016-09-07 23:09 whl-hl 阅读(200) 评论(0) 推荐(0)

118. Pascal's Triangle
摘要:1. 问题描述 Given numRows, generate the first numRows of Pascal's triangle. For example, given numRows = 5, Return[[1],[1,1],[1,2,1],[1,3,3,1],[1,4,6,4,1] 阅读全文

posted @ 2016-09-05 23:17 whl-hl 阅读(175) 评论(0) 推荐(0)

172. Factorial Trailing Zeroes
摘要:1. 问题描述 Given an integer n, return the number of trailing zeroes in n!.Note: Your solution should be in logarithmic time complexity.Tags: MathSimilar 阅读全文

posted @ 2016-09-01 22:05 whl-hl 阅读(182) 评论(0) 推荐(0)

导航