Cobb and Mazes
CodeChefOpen on judge ↗
Cobb wants to assess if Ariadne is good enough to be recruited into team Inception. He asks her to design a maze of tunnels so that any person that enters the maze from any of the entry points will take a minimum of k units of time to exit from any of the exit points. Ariadne has created some mazes in the form of a connected undirected graph where each node of the graph represents a point whe
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.
Sign in to chat with the tutor and save your progress.
Sign in to start