LeetCode172——阶乘后的零

我的LeetCode代码仓:https://github.com/617076674/LeetCode 原题链接:https://leetcode-cn.com/problems/factorial-trailing-zeroes/description/ 题目描述: 知识点:数学 思路:只有2和5相乘末尾才可能产生0 还有一个事实是,[1, n]范围内2的数量远远大于5的数量,因此有多少个5,乘
相关文章
相关标签/搜索