← All problemsSign in

The Kings Idea

Problem description The king of chefville decided to bring the people of the world closer together. He came up with an idea of building underground tunnels to connect major cities of the world. He also wanted to save up on money so he made sure a single tunnel was made between any two cities and there was exactly one path through these tunnels between any two cities.These tunnels are bi-direction

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