Minion Rush
CodeChefOpen on judge ↗
Problem Infinite army of minions are racing on an infinite 2-D plane. Here's how they race: Each minion chooses exactly one x coordinate and races along it in positive y direction, starting from (x, 0). There exists exactly one minion for each x coordinate on that plane and hence there are infinite minions! There are N horizontal barriers lying on this plane. The ith barrier is defined
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