The forgotten array
CodeChefOpen on judge ↗
**This is a code golfing question.** Neel was working on his research project on an array. Unfortunately, he scrambled the index of different elements of the list. But when he studied the algorithm, he got to know that the program has given him $2$ arrays as output $A$ and $B$ where $B_{i}$ represents the initial index of $A_{i}$. Neel wants your help but because of memory constraints, he wants
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