Skip to content

Commit 7ad576f

Browse files
authored
Update stone-game-ix.cpp
1 parent 2cd3d35 commit 7ad576f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

C++/stone-game-ix.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ class Solution {
99
++count[x % 3];
1010
}
1111
if (count[0] % 2 == 0) {
12-
// if both counts are not zero, then alice takes the least one at first, the remains are deterministic for bob to lose:
12+
// iff both counts are not zero, then alice takes the least one at first, the remains are deterministic for bob to lose:
1313
// - assumed count[1] is the least one:
1414
// 1(,1,2)*,2,(,2)* => bob loses
1515
// ^
@@ -18,7 +18,7 @@ class Solution {
1818
// ^
1919
return count[1] && count[2];
2020
}
21-
// if abs(count[1]-count[2]) >= 3, then alice takes the most one at first, the remains are deterministic for bob to lose:
21+
// iff abs(count[1]-count[2]) >= 3, then alice takes the most one at first, the remains are deterministic for bob to lose:
2222
// - assumed count[1] is the most one
2323
// 1(,1,2)*,0,1(,2,1)*,1,(,1)* => bob loses
2424
// ^

0 commit comments

Comments
 (0)