Available question text
Determine the last remaining number after repeatedly removing every other element from the list [1..n], alternating left-to-right and right-to-left passes. Because n can be as large as 1e9, the solution relies on a mathematical/recurrence insight (not direct simulation) to compute the result efficiently.
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 390. Elimination Game
Reported date not specified · 0 source reports
Source snapshot: Nov 12, 2026
View source