Frage im Vorstellungsgespräch bei Barclays

Write a function to sort an array based on the frequency.

Antwort im Vorstellungsgespräch

Anonym

22. Aug. 2016

Used a hash map to store the numbers and their frequencies as pairs. Then used selection sort in the map values.

1