Skip to content

Commit 2ce6822

Browse files
authored
Update subtree-removal-game-with-fibonacci-tree.cpp
1 parent 6249c53 commit 2ce6822

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

C++/subtree-removal-game-with-fibonacci-tree.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
class Solution {
55
public:
66
bool findGameWinner(int n) {
7-
// every 6 grundy numbers in binary:
7+
// a pattern appears every 6 grundy numbers in binary forms:
88
// 0000, (XXXX+1)01, (XXXX+1)11, (((XXXX+1))^((XXXX+1)+1))10, (XXXX+1)11, (XXXX+1)11
99
return n % 6 != 1;
1010
}

0 commit comments

Comments
 (0)