We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7a4055a commit 0e9586fCopy full SHA for 0e9586f
lcci/16.05.Factorial Zeros/README.md
@@ -85,7 +85,7 @@ func trailingZeroes(n int) int {
85
```ts
86
function trailingZeroes(n: number): number {
87
let ans = 0;
88
- while (n > 0) {
+ while (n) {
89
n = Math.floor(n / 5);
90
ans += n;
91
}
lcci/16.05.Factorial Zeros/README_EN.md
@@ -93,7 +93,7 @@ func trailingZeroes(n int) int {
93
94
95
96
97
98
99
lcci/16.05.Factorial Zeros/Solution.ts
@@ -1,6 +1,6 @@
1
2
3
4
5
6
0 commit comments