Jiggly Puff
CodeChefOpen on judge ↗
Jigglypuff is a pokemon that loves to sing. But listening to her song induced sleep. To prevent her from singing, Misty gives her an array of $n$ integer and multiplies each element with its index and ended up sorting this new array. Now she gave Jigglypuff new array and challenged her to find any array which if followed the steps would lead to the given array. Help poor JigglyPuff solve this
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