Worst-Case Socks for a Matching Pair

Minimum socks for matching pair is an easy quant interview question on Brain Teasers, reported to have been seen at Jane Street.

Difficulty Easy Topic Brain Teasers Reported at Jane Street

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 reasoning under an adversarial or worst-case scenario when outcomes are drawn randomly from several categories. Instead of focusing on exact probabilities, the setup forces you to think about guarantees: what must eventually happen no matter how unlucky you are. It is a classic discrete math puzzle that often appears in quant prep and brain teaser collections because it is easy to state but reveals how a candidate thinks.

It trains your understanding of combinatorial structure, especially the idea of forcing a repeat outcome when choices are limited. You practice identifying hidden constraints, formalizing them as categories, and reasoning about bounds and guarantees. This kind of thinking underpins more advanced work in discrete probability, counting arguments, and sanity checks on models.

It matters for quant interviews because it probes whether you can quickly recognize fundamental principles beneath a simple surface story. Interviewers use questions like this to see if you can reason cleanly without computation, handle worst-case logic, and articulate a crisp argument. Mastering such puzzles is a key part of systematic quant interviews preparation, helping you develop the structured thinking needed for trading, risk, and quantitative research roles.

What it tests

The core structure here is the Pigeonhole Principle, which states that if you distribute more objects than there are categories (pigeonholes), at least one category must contain more than one object. In problems where you want to guarantee a repeated outcome—such as drawing two objects of the same type—the worst-case scenario is constructed by maximizing diversity before repetition is forced. This principle holds because the moment you exceed the number of categories, you must start repeating. The intuition is that no matter how you try to avoid repetition, the finite number of categories (colors, types, etc.) sets a hard limit on how long you can avoid a match. This logic generalizes to any problem where you must ensure at least one duplicate among several categories.

Practise this question with written feedback, or hear it in a spoken mock interview.

Get started free