Diagon Alley
CodeChefOpen on judge ↗
Aseem is from a wizarding family. His girlfriend (I forgot her name again :/ ), got selected for attending Hogwarts school of Witchcraft and Wizardry. Now its his duty (and pleasure ;) ) to accompany her though diagon alley while she picks up all the items needed for her first year at school. The diagon alley is a straight street (a single lane) with shops lined up at integer distances from the en
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