摘要: 题目: Given an integer n, return the number of trailing zeroes in n!. 给定一个整数n,返回n!中的尾随零数。 Example 1: Example 2: Note: Your solution should be in logarit 阅读全文
posted @ 2018-09-04 22:10 chan_ai_chao 阅读(74) 评论(0) 推荐(0) 编辑
摘要: 题目: We are playing the Guess Game. The game is as follows: 我们正在玩猜猜游戏。 游戏如下: I pick a number from 1 to n. You have to guess which number I picked. 我从1到 阅读全文
posted @ 2018-09-04 20:27 chan_ai_chao 阅读(106) 评论(0) 推荐(0) 编辑
摘要: 题目: Given a sorted array nums, remove the duplicates in-place such that each element appear only once and return the new length. 给定排序的数组nums,就地删除重复项,使 阅读全文
posted @ 2018-09-04 19:52 chan_ai_chao 阅读(129) 评论(0) 推荐(0) 编辑
摘要: 题目: The count-and-say sequence is the sequence of integers with the first five terms as following: count-and-say序列是整数序列,前五个术语如下: 1 is read off as "one 阅读全文
posted @ 2018-09-04 11:03 chan_ai_chao 阅读(156) 评论(0) 推荐(0) 编辑