PY/MATH
Challenges
Statistics · Medium

Mode

Write `mode(xs)` returning the most frequent value. If tie, return the smallest tied value.

solution.py○ Loading…
Loading...
Console
Test cases
mode([1, 2, 2, 3])PENDING
mode([1, 1, 2, 2])PENDING
HiddenPENDING
Hints