Log in
← All problems

Most common number

mediumDictionaries20 XP

Return the number that appears most often in nums (it isn't empty). If several numbers are tied, return the smallest of them.

Examples

Examples use JSON: true/false/null are True/False/None in Python.

Run examples checks the examples above. Submit also runs 3 hidden tests.