How many numbers ≤ 10000 include the digit 0?
Numbers up to ten thousand with zero is an easy quant interview question on Combinatorics, reported to have been seen at Akuna Capital.
MyQuantPartner is not affiliated with, endorsed by, or sponsored by these companies, and all trademarks belong to their respective owners.
This combinatorics question is about counting how many integers in a range share a specific digit feature. Instead of focusing on structure or sequences, it focuses on digit patterns, classification of cases by number of digits, and how they fit into a well-defined sample space. It is a clean, finite counting problem that feels simple but still forces you to be precise with definitions such as "positive," "less than or equal," and "contains at least once."
It trains your ability to recognize when counting directly is messy and to switch to a cleaner perspective. In particular, it develops comfort with complementary sets, independence across digit positions, and disciplined case separation. This is core quant prep: translating a verbal condition into a clear combinatorial framework and avoiding double-counting traps.
For quant interviews, this matters because many probability and trading problems reduce to clever counting under constraints. Interviewers use this kind of question to see if you can set up a sample space, structure the cases efficiently, and manipulate digit or state-based representations without algebraic noise. Being quick and reliable on these "small" combinatorics puzzles is a strong signal that you can handle more complex model-counting and probability reasoning in real quant roles.
What it tests
When a problem asks for the count of objects with at least one forbidden feature (such as a digit 0), it is often easier to count the total number of objects and subtract those that never have the forbidden feature. This is the principle of complementary counting, which leverages the fact that the set of all objects can be partitioned into those with and without the feature. The reason this works is that directly counting the presence of at least one forbidden feature can be complicated by overlapping cases (e.g., multiple digits being 0), but counting the absence is often straightforward because each position is simply restricted. This approach is especially powerful in digit-based problems, where the absence of a digit allows for independent choices in each position, avoiding overcounting.
Practise this question with written feedback, or hear it in a spoken mock interview.
Get started free