FunctionRacerProblemsRace

The Mode

BeginnerSciPyPython

Return the mode of values: the number seen most often. When several numbers are seen equally often, the mode is the smallest of them.

Example 1

values [3,7,3,9,7,3]
returns 3

3 is seen three times.

Constraints

Race itor take your time

Write it in your browser, against the clock. The model solution, stepped through line by line, comes after.

More SciPy problems