algorithm - Best way to find recurring values in a set -
What's the best way to find the most recurring values in the set? I would like to use a one-handed algorithm, assume that values are from 1,2,3,4, .., M domains?
If I had to write an algorithm to do this, how would I do this? Store them in a hash table, count how many times one (o) is
Was stored.
Then loop (O) through the bucket.
Comments
Post a Comment