Sleepy Jimma
CodeChefOpen on judge ↗
Jimma had not been able to sleep for the last few days because Chingam kept waking her up to play with him. To keep him busy for a few hours Jimma gave Chingam an array A of N distinct integers and told him to play with it. After observing the array for a while Chingam noticed that there are too many different elements and too much chaos. So he decided to fix the array and make each of the elemen
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