← All problemsSign in

Dumbledore and mission

There are multiple student groups in the Dumbledore's Army in Hogwarts. Dumbledore wants to send two student groups into the Forbidden Forest to retrieve a powerful weapon. But, in order to break the protection spell on the weapon and retrieve it, at least one person from 'k' number of houses (i.e Gryffindor, Hufflepuff, Ravenclaw, Slytherin) has to cast a spell on it simultaneously. Therefore, 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