Talk:Averages/Mode

From Rosetta Code

Rereading the task text to check my C implementation compliance, I've noticed it asks the mode for a vector of integers. Shouldn't this requirement be relaxed, e.g. with "vector of numbers" instead? --ShinTakezou 13:33, 14 June 2009 (UTC)

I think it can be open to all types of objects. Since all we need is a count of how many of each thing there is, and don't need to do arithmetic on the values, they don't need to be numbers, right? Perhaps we can allow them to use a collection of integers or floats or other objects, whichever is easiest in their language. --Spoon! 03:08, 15 June 2009 (UTC)

This task is similar to Anagrams. Perhaps we can borrow ideas from that page. --Spoon! 03:08, 15 June 2009 (UTC)