← All problemsSign in

The Maze Runner

Today thomas has to run in maze II. Currently there are M small chambers numbered from 1 to M in the maze where thomas can stay safe from robots during his run in the maze. Also there are K bidirectional tunnels in the maze such that each chamber is reachable from any other chamber. To make things complicated for thomas this time, Oz wants to change the maze by removing some tunnels such that exac

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