Trailing Zeros in Factorial Time : Space : 12345678int Solution::trailingZeroes(int A) { int res = 0; for(int i = 5; i <= A; i *= 5) { res += A / i; } return res;}