Skip to content

Instantly share code, notes, and snippets.

@kanrourou
Created November 1, 2017 05:33
class Solution {
public:
int trailingZeroes(int n) {
int res = 0;
while(n /= 5)
res += n;
return res;
}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment