← All problemsSign in

Wire It!

*This problem has a protagonist, but the story is still omitted.* Shriram manages the electricity requirements of a hotel. The hotel consists of $2n$ rooms, which are in the form of a $2\cdot n$ grid, where each cell is a room. Shriram can only put wires between rooms sharing a common side. Suddenly one day lightning strikes and all the pre-existing wires get destroyed. Seeing this Shriram h

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