← All problemsSign in

Tokyo gets chased

Tokyo is trying to escape from the police in a road chase. The police is monitoring her movement therefore she can travel through a road exactly once. The roads have junctions connecting them to each other. Each junction can have multiple roads intersecting at that point. If Tokyo is able to travel all the roads then she can escape from the police. You are given the number of junctions $N$ and a

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