← All problemsSign in

Harry and Traps

Harry is in an open field. He can sense something fishy. He came to know that his enemy has placed traps all aroung the place for Harry. The trap pods can connect with each other and form a wall between them with the following rules: 1. Only those traps will form the wall at first which cover the maximum area, and then the next traps will follow the same process. 2. A trap can connect with at

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