@@ -0,0 +1,388 @@
+package leetcode;%0A%0A/**%0A * https://oj.leetcode.com/problems/factorial-trailing-zeroes/%0A */%0Apublic class Problem172 %7B%0A    public int trailingZeroes(int n) %7B%0A        int result = 0;%0A        int exp = 1;%0A        long pow = (long) Math.pow(5, exp);%0A        while (pow %3C= n) %7B%0A            pow = (long) Math.pow(5, exp++);%0A            result += n / pow;%0A        %7D%0A        return result;%0A    %7D%0A%7D%0A

Solve problem 172