Last Integer Standing After Deletions
Last number deleted in circle game is a medium quant interview question on Brain Teasers, reported to have been seen at Citadel.
MyQuantPartner is not affiliated with, endorsed by, or sponsored by these companies, and all trademarks belong to their respective owners.
This brain teaser is about a dynamic elimination process on a structured set of integers, where positions change as elements disappear. It forces you to track how a deterministic rule, repeatedly applied, reshapes the configuration and eventually isolates a single survivor. The setup is simple, but the logic hidden beneath the rotations and deletions is subtle and layered.
It trains your ability to recognize discrete patterns, reason about modular structure, and connect iterative procedures to underlying number-theoretic regularities. You practice turning a verbal description of a process into a precise mathematical model, then extracting an invariant that predicts the final outcome without brute-force simulation. It also sharpens your comfort with large finite processes.
This matters for quant interviews and serious quant prep because many real problems in trading, risk, and statistical modeling involve understanding the limiting behavior of repeated operations. Interviewers use such puzzles to see if you move from ad-hoc reasoning to structural insight, and whether you can simplify a complex-seeming system into something analyzable. For top firms running intense quant interviews, this kind of question screens for pattern recognition, abstraction skills, and the ability to reason cleanly under pressure.
What it tests
This problem class is governed by the principle of iterative filtering based on divisibility, where each round eliminates elements according to a regular pattern (often parity or modular congruence), and the survivors are those that repeatedly satisfy increasingly strict divisibility constraints. The underlying structure is that each pass acts as a sieve, removing elements that do not align with a growing modulus (here, powers of 2). This process continues until only numbers that are divisible by the highest possible power of the base modulus (2 in this case) remain. The pattern holds because each pass effectively halves the set, and only numbers that have enough factors of the base modulus survive all rounds. The last survivor is always the largest number less than or equal to the original total that is a power of the base modulus, because it is the only one never eliminated by any filter.
Practise this question with written feedback, or hear it in a spoken mock interview.
Get started free