Party Guest Acquaintance Problem
Group of Six Friends or Strangers is an easy quant interview question on Brain Teasers.
This brain teaser describes a small social gathering and asks you to reason about acquaintance and stranger relationships within a fixed-size group. You are told nothing about how the people were chosen or how they behave; you only assume that between every pair of guests, either they have met before or they have not. The challenge is to show that, no matter how you arrange these relationships, a certain pattern among a subset of guests cannot be avoided. Questions of this flavor are classic in mathematical puzzle books and occasionally appear in quant internship or junior interview screens as a gentle introduction to more abstract combinatorial thinking.
The solution leans on viewing the situation as a complete graph with edges colored in two ways, and then using a counting or pigeonhole-style argument on the connections from a single node. An interviewer is looking for the ability to translate the informal story into a clean combinatorial model, systematically exhaust the cases without getting lost, and clearly justify why no configuration can escape the required pattern. Clarity of structure, not algebraic heavy lifting, is what stands out in strong answers.
What it tests
This problem is governed by the principle that in any sufficiently large structure, certain patterns are unavoidable—a core idea in Ramsey theory. Specifically, when you consider all possible relationships (edges) among a set of objects (nodes), the pigeonhole principle ensures that, beyond a threshold, some monochromatic substructure (like a clique of mutual acquaintances or strangers) must exist. The reason this holds is that as the number of objects increases, the number of possible pairings grows rapidly, making it impossible to avoid every configuration of a particular size. The generalization is that for any coloring of the edges of a complete graph, large enough graphs will always contain a monochromatic clique of a given size. This inevitability is not about the specifics of who knows whom, but about the combinatorial explosion of possible connections.
Practise this question with written feedback, or hear it in a spoken mock interview.
Get started free