Skip to content

Commit 1f2812f

Browse files
committed
update 172
1 parent 24ffdac commit 1f2812f

File tree

1 file changed

+2
-10
lines changed

1 file changed

+2
-10
lines changed

0172-factorial-trailing-zeroes.py

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,10 @@
33
44
Submitted: September 30, 2025
55
6-
Runtime: 3861 ms (beats 13.12%)
7-
Memory: 18.53 MB (beats 6.20%)
6+
Runtime: 2292 ms (beats 14.18%)
7+
Memory: 18.00 MB (beats 14.70%)
88
"""
99

10-
def factorial(n):
11-
if n == 0:
12-
return 0
13-
if n == 1:
14-
return 1
15-
else:
16-
return factorial(n - 1) * n
17-
1810
sys.set_int_max_str_digits(0)
1911

2012
class Solution:

0 commit comments

Comments
 (0)