标签:ret pre turn solution return factorial factor else object
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
标签:ret pre turn solution return factorial factor else object
原文地址:https://www.cnblogs.com/ffeng0312/p/9261218.html