← All problemsSign in

Tidke In Trouble

Once upon a time, there existed a kingdom called Buzzland. Since Buzzland was too large, the emperor of this kingdom, Lord Shivam Balikondwar III could not solve the administration problem. So he hired up, the greatest empire planner of that time, Shubham Tidke. Tidke suggested the empire can be divided into $N$ cities and $N - 1$ bidirectional roads connecting the cities to every city. The Empero

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