Skip to content

Commit e04b83f

Browse files
committed
update solution 1006
1 parent 992ccf0 commit e04b83f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

leetcode/1006.Clumsy-Factorial/1006. Clumsy Factorial.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package leetcode
22

33
func clumsy(N int) int {
4-
res, count, tmp, flag := 0, 1, N, true
4+
res, count, tmp, flag := 0, 1, N, false
55
for i := N - 1; i > 0; i-- {
66
count = count % 4
77
switch count {

website/content/ChapterFour/1000~1099/1006.Clumsy-Factorial.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ Explanation:12 = 10 * 9 / 8 + 7 - 6 * 5 / 4 + 3 - 2 * 1
4848
package leetcode
4949

5050
func clumsy(N int) int {
51-
res, count, tmp, flag := 0, 1, N, true
51+
res, count, tmp, flag := 0, 1, N, false
5252
for i := N - 1; i > 0; i-- {
5353
count = count % 4
5454
switch count {

0 commit comments

Comments
 (0)