File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -5,8 +5,8 @@ class Solution {
5
5
public:
6
6
bool sumGame (string num) {
7
7
// (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.
10
10
// in the end, it turns that only one half has '?' and the diff of both half sums is still the same as original
11
11
// (2) if smaller half has no '?', then alice wins
12
12
// (3) if smaller half has '?'
You can’t perform that action at this time.
0 commit comments