Skip to content

Commit

Permalink
Update flip-game-ii.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
kamyu104 committed Oct 18, 2015
1 parent ebed9ff commit 7cc07ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion C++/flip-game-ii.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class Solution {
// Find first missing number.
g.emplace_back(x.find('+'));
}
g_final ^= g[p]; // g[0], g[1] is always 0
g_final ^= g[p];
}
return g_final; // Theorem 1: First player must win iff g(current_state) != 0
}
Expand Down

0 comments on commit 7cc07ed

Please sign in to comment.