-2
Given for example this array input
[1,1,1,2,2,1,1,3,3,3,3]
I want to have this array as an output that counts the integer and put their occurrences in front of the integer:
[1,3,2,2,1,2,3,4]
Here is my code, can you please review it and give me its complexity. Is there another way to solve ...