Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit c0df00f

Browse files
committed
Add solution 172.
1 parent 3356ee9 commit c0df00f

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
class Solution {
2+
3+
/**
4+
* @param Integer $n
5+
* @return Integer
6+
*/
7+
function trailingZeroes($n) {
8+
$res = 0;
9+
while($n >= 5){
10+
$n = intval($n / 5);
11+
$res += $n;
12+
}
13+
return $res;
14+
}
15+
}

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /