Available question text
Two players alternately remove a prefix of length >1, add its sum to their score, and replace it by a single stone until one remains; compute the final optimal (Alice−Bob) score difference. The problem reduces to a minimax/dynamic-programming on suffix sums to choose optimal split points efficiently for n up to 1e5.
Related questions
Continue with questions that share topics or the same question type.
- Jump Game VIII
Coding
- Stone Game
Coding
- Stone Game II
Coding
- Stone Game III
Coding
Sources · 1 reference
These records explain where the question appears. A company tag or candidate report does not guarantee a future interview question.
Hello Interview · 1 record
No company association
Leetcode 1872. Stone Game VIII
Interview date not specified · 0 source reports
Source snapshot: Nov 12, 2026
View source