Let's say we have an array of number (not sorted) and we need to place them in different buckets such that
5 to 10
10 to 15
15 to 20
20 to 25
what is the best solution? I'm think of hash tables. Can some experts give me some advice on this?