← All problemsSign in

Graph Sah Kreedam 2

Do you remember Mr. Y from Vigyanpura? This is him now! ![Mr. Y](https://i.ibb.co/ZGrqykH/091f814f05cabf46c7c187203a0f6dbc.jpg) He has set up hi-tech portals in the $N$ houses of Vigyanpura. The portal in a house can be used to travel to another (fixed) house. Dr. Y now wants to test if these portals work correctly. For this, he will send $M$ of his explorer robots, each of which will start at s

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