Available question text
Two players alternately remove any positive perfect-square number of stones from a pile of n, and the player who cannot move loses; determine whether Alice (first player) has a forced win under optimal play. The core challenge is to evaluate winning/losing states up to n (n ≤ 10^5), typically by dynamic programming/minimax to see if any square move leads to an opponent losing state.
Related questions
Continue with questions that share topics or the same question type.
- Stone Game
Coding
- Stone Game II
Coding
- Stone Game III
Coding
- Stone Game IX
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 1510. Stone Game IV
Reported date not specified · 0 source reports
Source snapshot: Nov 12, 2026
View source