leetcodeSolution to some Leetcode problems written in C++ |
git clone git://git.dimitrijedobrota.com/leetcode.git |
Log | Files | Refs | README | LICENSE |
0172.cpp (167B)
0 class Solution { 1 public: 2 int trailingZeroes(int n) const { 3 int res = 0; 4 while (n > 0) 5 n /= 5, res += n; 6 return res; 7 } 8 };