摘要: 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 阅读全文
posted @ 2016-11-08 17:25 花椰菜菜菜菜 阅读(135) 评论(0) 推荐(0) 编辑
摘要: 172. Factorial Trailing Zeroes Given an integer n, return the number of trailing zeroes in n!. Note: Your solution should be in logarithmic time compl 阅读全文
posted @ 2016-11-08 16:36 花椰菜菜菜菜 阅读(236) 评论(0) 推荐(0) 编辑
摘要: 171. Excel Sheet Column Number Related to question Excel Sheet Column Title Given a column title as appear in an Excel sheet, return its corresponding 阅读全文
posted @ 2016-11-08 11:45 花椰菜菜菜菜 阅读(213) 评论(0) 推荐(0) 编辑
摘要: 169. Majority Element Given an array of size n, find the majority element. The majority element is the element that appears more than ⌊ n/2 ⌋ times. Y 阅读全文
posted @ 2016-11-08 10:58 花椰菜菜菜菜 阅读(161) 评论(0) 推荐(0) 编辑