Elf on the Shelf
After helping Santa [get some exercise](https://www.facebook.com/codingcompetitions/hacker-cup/2023/round-1/problems/A), you (Santa's little helper) think it's time the elves get around to actually working on toys. Santa Claus Lane is home to $N$ elves, the $i$-th of whom lives $X_i$ meters from the start of the lane. You are, once again, tasked to assign elves to work on toys for good little g
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