2017年3月31日

LeetCode : Palindrome Number

摘要: Determine whether an integer is a palindrome. Do this without extra space.click to show spoilers.Some hints: Could negative integers be palin... 阅读全文

posted @ 2017-03-31 14:08 gechen 阅读(88) 评论(0) 推荐(0) 编辑

LeetCode : Factorial Trailing Zeroes

摘要: Given an integer n, return the number of trailing zeroes in n!.Note: Your solution should be in logarithmic time complexity.解释: 对n!做质因数分解n!=2... 阅读全文

posted @ 2017-03-31 13:58 gechen 阅读(80) 评论(0) 推荐(0) 编辑

LeetCode: Pascal's Triangle II

摘要: Given an index k, return the kth row of the Pascal’s triangle.For example, given k = 3, Return [1,3,3,1].Note: Could you optimize your algori... 阅读全文

posted @ 2017-03-31 12:00 gechen 阅读(71) 评论(0) 推荐(0) 编辑

导航