Skip to content

Commit 97114d7

Browse files
authored
Update sum-game.cpp
1 parent de07e1c commit 97114d7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

C++/sum-game.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ class Solution {
55
public:
66
bool sumGame(string num) {
77
// (1) if both halfs have '?',
8-
// alice will try to choose a number from one half to maximize or minimize the diff of both half sums,
9-
// and bob will try to choose the same number frome the other half to minimize or maximize the diff of both half sums.
8+
// alice will optimally choose 9 or 0 from one half to maximize or minimize the diff of both half sums,
9+
// and bob will optimally choose the same number from the other half to minimize or maximize the diff of both half sums.
1010
// in the end, it turns that only one half has '?' and the diff of both half sums is still the same as original
1111
// (2) if smaller half has no '?', then alice wins
1212
// (3) if smaller half has '?'

0 commit comments

Comments
 (0)