← All problemsSign in

Junior from Senior

A Junior array $J$ of size $n$, and elements $J_1,J_2,J_3......J_n$. A senior array $S$ of size $2n$, and elements $S_1,S_2,S_3......S_2n$. For every element, $J_i$ in the array $J$ there exist $2$ elements in array S of the form $J_i + K$ and $J_i - K$ randomly in any position. You are given $n$ and array $S$. Find whether there exists an array $J$ for Given $S$ or not. ### Input - First line w

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