摘要: 题目描述 Implement an iterator over a binary search tree (BST). Your iterator will be initialized with the root node of a BST. Calling next() will return 阅读全文
posted @ 2019-05-31 14:46 你好哇傻小妞 阅读(271) 评论(0) 推荐(0) 编辑
摘要: 题目描述 Given an integer n, return the number of trailing zeroes in n!. 题目大意 给定一个正整数n,计算n!的后缀有几个零。 示例 E1 E2 解题思路 因为在n!中每出现一个5就会产生一个零(5 * 2 = 10、15 * 12 = 阅读全文
posted @ 2019-05-31 14:17 你好哇傻小妞 阅读(84) 评论(0) 推荐(0) 编辑