Submission Detail

500 / 500 test cases passed.
Status:

Accepted

Runtime: 0 ms
Memory Usage: 39.8 MB
Submitted: 0 minutes ago
loading
Runtime Error Message:
Last executed input:
Input:
Output:
Expected:

Accepted Solutions Runtime Distribution

0
2
4
6
8
10
12
14
16
18
20
22
10
20
30
40
50
60
70
java
You are here!
Your runtime beats 100.00 % of java submissions.
Runtime (ms)
Distribution (%)

0.0
2.5
5.0
7.5
10.0
12.5
15.0
17.5
20.0
25
50
75
Zoom area by dragging across this chart

Accepted Solutions Memory Distribution

38800
38900
39000
39100
39200
39300
39400
39500
39600
39700
39800
39900
40000
40100
2.5
5.0
7.5
10.0
12.5
15.0
java
You are here!
Your memory usage beats 50.84 % of java submissions.
Memory (KB)
Distribution (%)

38800
38900
39000
39100
39200
39300
39400
39500
39600
39700
39800
39900
40000
40100
5
10
15
Zoom area by dragging across this chart

Invite friends to challenge Factorial Trailing Zeroes


Submitted Code: 0 minutes ago

Language: java

1
2
3
4
5
6
7
8
9
10
11
12
13
14
class Solution {
public int trailingZeroes(int n) {
int zeroes = 0;
while (n >= 5) {
zeroes += (n / 5);
n /= 5;
}
return zeroes;
}
}
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX