Namikaze's Posts
Nairaland Forum › Namikaze's Profile › Namikaze's Posts
GREATIGBOMAN:That's an interesting way to look at it, looking forward to your solution. |
My solution: def sort_by_frequency(arr): Let's see yours. |
Apparently a senior software developer could not solve this coding interview problem, can you? Given an array of numbers, list them in the order of most repeated. I.e: [1,2,6,2,3,7,7,5,7,6,2,7] => [7,2,6,5,3,1] source: ``https://www./programmer.nullposting/permalink/1456356328162617/?app=fbl`` |