Batman vs Joker
CodeChefOpen on judge ↗
BATMAN's DILEMMA! The gotham city is again in trouble as the joker escaped the arkham asylum . The Joker this time had a new plan. He gave Batman a puzzle to solve. He has rigged N places in the city with bombs(Numbered 1 to N).The bombs are connected in a hierarchical fashion i.e If one bomb blows up ,a number of other bombs Connected to it are triggered and blow too and so on.The joker has
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