← All problemsSign in

The Last Attempt

Finally our very shy and coder friend, Yaar, has accepted that he has a huge crush on "HER" ;). He could not gather the courage to propose her in these many years. But today is the last day of the college and Yaar has gathered somewhat courage to talk to her. There are N number of hostels in BIT Deoghar which are connected by M network of roads. Each road is bidirectional and connects two hostels

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