← All problemsSign in

Vasee and Robots

Dr. Vaseegaran is a great scientist. He created $N$ robots and placed them on each vertex in a $regular$ $graph$ with $N$ vertices and $N$ edges. Now he orders the robots to move. Then he realizes he didn't give the direction in which the robots should move. So the robots pick a random direction and move on. The robots can only move over the edges of the graph. Now, Vaseegaran wants to know the pr

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