← All problemsSign in

Rearrange the gifts

It's Christmas time, Santa's friends are helping him to arrange the gifts. Franklin is a new member of Santa's group and he too help the others in arranging the gifts. Let n be the number of gifts. Santa has a unique technique of ordering ,he put a number on each gift and then he write the order of the gifts on a piece of paper and give it to his friends .But Franklin being a new member does not

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