Search
⌘K
Get Premium
Leetcode 1927. Sum Game
Two players alternately replace '?' in an even-length digit string with 0–9; Alice wins if the final sums of the first and second halves differ, Bob wins if they are equal. Determine the winner under optimal play by analyzing the initial sum difference and the distribution (counts and parity) of '?' between the two halves, which control how much each player can adjust the final sums.
Question Timeline
See when this question was last asked and where, including any notes left by other candidates.
All Regions
Comments
Hello Interview Premium
Your account is free and you can post anonymously if you choose.