MCPcopy Create free account
hub / github.com/careercup/ctci / countFactZeros

Method countFactZeros

java/Chapter 17/Question17_3/QuestionA.java:13–19  ·  view source on GitHub ↗
(int num)

Source from the content-addressed store, hash-verified

11 }
12
13 public static int countFactZeros(int num) {
14 int count = 0;
15 for (int i = 2; i <= num; i++) {
16 count += factorsOf5(i);
17 }
18 return count;
19 }
20
21 public static int factorial(int num) {
22 if (num == 1) {

Callers 1

mainMethod · 0.95

Calls 1

factorsOf5Method · 0.95

Tested by

no test coverage detected