Five cookies
What this preview is
Five cookies is a easy quant interview question on stats & data analysis.
- Difficulty
- Easy
- Topic
- Stats & Data Analysis
- Discipline
- Quant trading
- Language
- Agnostic
- Companies
- 1
What this combinatorics interview question tests
This is an easy combinatorics problem that appears often in quant interview rounds. It tests whether you can recognize and apply the "stars and bars" technique—a foundational method for counting distributions of indistinguishable objects into distinguishable categories. The problem is small enough to solve by hand, but the real skill is identifying the right formula rather than brute-force enumeration.
Interviewers ask questions like this to confirm you have solid combinatorial intuition and can map a real-world constraint (identical cookies, different flavors) onto the appropriate counting model. The approach generalizes directly to problems involving portfolio allocations, inventory distributions, and sampling with replacement.
- Compositions and partitions
- Multiset counting
- The relationship between repetition and symmetry in counting problems
Unlock full access to getcracked
Join to unlock this question, detailed solutions, and our complete library of quant finance interview prep.