← All problemsSign in

MIRA HQ

You and your friends are playing "Among Us"( a game). Your friend Nuttela is the imposter and his job is to kill you. You( a crewmate) will have to complete all the tasks before the imposter kills you. In one of your tasks, you have been given $N$ balls numbered 1-N, arranged in random order. Pairs of balls are defined as (1,2), (3,4) and so on. You will have to arrange the pairs of balls such

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.

voice by Sarvam AI

Sign in to chat with the tutor and save your progress.

Sign in to start