Magical Stones of Hogwarts
CodeChefOpen on judge ↗
Albus Dumbledore, the Headmaster of Transfiguration( the art of changing the properties of an object) department of Hogwarts school introduces the following game to teach his students problem-solving(Problem solving is critical for Quidditch game). He places a number of magical stones in a straight line with a positive number shining on each of the stones. Students can reach the other end by
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.
Sign in to chat with the tutor and save your progress.
Sign in to start