← All problemsSign in

Haha

CodeChefRating 3206Open on judge ↗

*We have taken a great initiative to have a women only quota for admissions. The admission criteria is to solve one graph problem. Alice, being a woman, seeks admission under this quota and wants your help to solve the following problem.* You are given an integer $N$. Construct a *good* graph with $N$ vertices. A *good* graph is one that satisfies the following conditions: - The graph is simple

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