Swapnil annoys Chef
CodeChefOpen on judge ↗
Swapnil is a good friend of the Chef and like every other good friend he likes to annoy the Chef. Chef is working on a sequence A of $N$ integers A1, A2, A3, … AN. ( A1 < A2 < A3 … < AN ) Swapnil has a sequence B of $N$ integers B1, B2, B3, … BN. In order to annoy Chef, Swapnil plans to convert the Chef’s sequence A into another sequence C in the following manner: - He will co
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