← All problemsSign in

I KNOW IT !!

Ron sets out into the woods to rescue Harry and Hermoine on a dark night all alone. But the forbidden forest is full of spiders which he is afraid of. He takes out his wand to cast a spell that would get rid of all the spiders. But there is a problem. When Ron gets nervous he forgets the spells. As the time passes, every moment he gets more nervous and keeps forgetting. At the first moment, $N$=1

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