← All problemsSign in

Gandalf the Grey

Gandalf has many great magical powers. Sauron is the 'ONLY' enemy of Gandalf. Gandalf gets news from his secret agent that Sauron is going to attack. Before the final attack Sauron will send 'n' war-machines(distinct) in n boxes(1 in each box).Each box will contain manual for the respective machine.Sauron's orcs are unskilled and inexperienced,so they cannot handle these war-machines without corre

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