← All problemsSign in

Stay in the loop

Nikhil has to design a hyperloop track underground his city. As hyperloop is a new technology he wants to waste as little money as possible in this pilot project. He came up with an idea that pods will cover path between every pair of station (if path exists between them) only once. His assistant has submitted him many ideas regarding the layout of the track. Now he has to select only those track

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