← All problemsSign in

Start Shift

CodeChefRating 2250Open on judge ↗

*This is the easy version of the problem. You only need to check whether the given array is balanced.* You are given an array $A$ of length $2N$. The array contains every integer from $1$ to $N$ **exactly twice each**. You can modify the array via the following process: - Choose an integer $k$ ($0 \le k \le 2N$). - Choose $k$ indices in ascending order: $1 \le i_1 \lt i_2 \lt \ldots \lt i_k \le

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