← All problemsSign in

Harry and the missing Item

Harry wants to procure all the books and items required for his first year. The item names are written in a language which is completely new to him. However, his good friend and well-wisher Hagrid has given him vital information to find out which items he needs to buy. Each item on the list has an integer value assigned to it. These integers are within the range 1-n (both inclusive) and there are

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