← All problemsSign in

Clique Boolean Expression

CodeChefRating 3160Open on judge ↗

Chef Ada constructed a simple undirected graph $G$ with $N$ vertices (numbered $1$ through $N$) as follows: * Start with a [complete graph](https://en.wikipedia.org/wiki/Complete_graph) with $K$ vertices and $K \cdot (K-1)/2$ edges. * Then, add $N-K$ vertices one by one. After adding each vetex, find some [clique](https://en.wikipedia.org/wiki/Clique_(graph_theory)) of $K-1$ vertices in the graph

HINT LADDERno hints yet
L1 Observation
L2 Technique
L3 Approach
L4 Pseudo-code
🔒
L5 Full solution
L5 unlocks only if you insist twice
solution.cppC++17

CodeSearch Tutor

Hints, not spoilers — it won’t hand over the full solution unless you insist.

voice by Sarvam AI

Sign in to chat with the tutor and save your progress.

Sign in to start