Available question text
Two players alternate replacing n with n − x for any proper divisor x of n; determine whether the first player can force a win under optimal play. Key observation (provable by simple DP/induction): Alice wins iff n is even.
Related questions
Continue with questions that share topics or the same question type.
- 2048 Game Backend
Coding
- 24 Game
Coding
- Alice and Bob Playing Flower Game
Coding
- Baseball Game
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 1025. Divisor Game
Interview date not specified · 0 source reports
Source snapshot: Nov 12, 2026
View source