class Solution(object): def trailingZeroes(self, n): """ :type n: int :rtype: int """ if n==0: return 0 else: return n/5 + self.trailingZeroes(n/5)
172. Factorial Trailing Zeroes
原文:https://www.cnblogs.com/ffeng0312/p/9261218.html