摘要: Given an integer n, return the number of trailing zeroes in n!. Example 1: Input: 3Output: 0Explanation: 3! = 6, no trailing zero. Example 2: Input: 5 阅读全文
posted @ 2018-08-21 20:16 cwpeng 阅读(186) 评论(0) 推荐(0) 编辑
摘要: Given an array of size n, find the majority element. The majority element is the element that appears more than ⌊ n/2 ⌋ times. You may assume that the 阅读全文
posted @ 2018-08-21 16:36 cwpeng 阅读(217) 评论(0) 推荐(0) 编辑