Serial Killer
CodeChefOpen on judge ↗
Arya Stark has a kill list. She wants to kill Cersei Lannister, Ilyn Payne, Melisandre, Thoros of Myr,Polliver, Gregor Clegane, Meryn Trant etc. She maps these names to number, and stores it in a list. She wants to find her next target. She has an idea on how to do so. Arya makes them stand in a line. No one is allowed to move from their place and can only talk to the person adjacent to them.
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