diff --git a/leetcode/1006.Clumsy-Factorial/1006. Clumsy Factorial.go b/leetcode/1006.Clumsy-Factorial/1006. Clumsy Factorial.go index dd62b3a3..f69cfaca 100644 --- a/leetcode/1006.Clumsy-Factorial/1006. Clumsy Factorial.go +++ b/leetcode/1006.Clumsy-Factorial/1006. Clumsy Factorial.go @@ -1,7 +1,7 @@ package leetcode func clumsy(N int) int { - res, count, tmp, flag := 0, 1, N, true + res, count, tmp, flag := 0, 1, N, false for i := N - 1; i > 0; i-- { count = count % 4 switch count { diff --git a/website/content/ChapterFour/1000~1099/1006.Clumsy-Factorial.md b/website/content/ChapterFour/1000~1099/1006.Clumsy-Factorial.md index 5824903f..9b18f127 100644 --- a/website/content/ChapterFour/1000~1099/1006.Clumsy-Factorial.md +++ b/website/content/ChapterFour/1000~1099/1006.Clumsy-Factorial.md @@ -48,7 +48,7 @@ Explanation:12 = 10 * 9 / 8 + 7 - 6 * 5 / 4 + 3 - 2 * 1 package leetcode func clumsy(N int) int { - res, count, tmp, flag := 0, 1, N, true + res, count, tmp, flag := 0, 1, N, false for i := N - 1; i > 0; i-- { count = count % 4 switch count {