Skip to content

Commit cd15d56

Browse files
committed
Update flip-game-ii.cpp
1 parent 3f2ea01 commit cd15d56

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

C++/flip-game-ii.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ class Solution {
2222
// Find first missing number.
2323
g.emplace_back(x.find('+'));
2424
}
25-
g_final ^= g[p]; // g[0], g[1] is always 0
25+
g_final ^= g[p];
2626
}
2727
return g_final; // Theorem 1: First player must win iff g(current_state) != 0
2828
}

0 commit comments

Comments
 (0)