Update on October 8, 2025: Thanks to everyone who voted on the entries! We received 281 votes from 59 users.
There were a lot of great responses to this challenge. We appreciate the participation.
We'd like to recognize the 5 entries which received the highest vote score.
Highest score: M--
2nd highest score: sebastian
3rd highest score: Muhammad Ali Ansari
4th highest score: Andrey Dmitriev
5th highest score: cocomac
Update on September 30, 2025: We've now entered the voting period which lasts till October 6th. All of the responses are visible. Please upvote your favorite entries.
Our previous challenges had more of an emphasis on creativity. Today’s challenge is more about efficiency and performance.
The Challenge
Given a list of 1 million random numbers, find the number that appears the most.
(Clarification: The primary task is to find a most frequent number. Solutions that correctly handle and report all numbers in the event of a tie are appreciated.)
Numbers are integers with values from 0 to 999.
To help you build/test the code, here are two sample files, one with 100 integers, and one with 10,000 integers.
Once your code is complete, please benchmark its performance on this list of 1 million integers. Please reserve this final list for your performance measurement.
Winners are selected by the community’s votes. Voters should select the responses which have the best performance or other notable attributes.
How does the actual contest work?
You have two weeks from the date this challenge is posted to submit your entry. During this period, other entries are only visible once you have submitted your own. After that, anyone can view and vote on others’ entries.
User entries with the highest vote score will be recognized. Please note that any votes received as part of this challenge do not count towards site reputation.
To keep the voting fair, we’ve hidden the vote counts until the end of the challenge. The scores will be unhidden on October 7, and we’ll announce the winners soon after that.
September 16: Challenge goes live
September 30: All entries visible to everyone. Vote scores are hidden to reduce voting bias.
October 7: Challenge ends. Vote counts and winners are announced.
How to Submit:
Enter your submission in the text box below.
Your submission should include:
The code you have written
An explanation of your approach, including how you optimized it for this task
The code execution runtime along with details about your machine
Anything you learned or any interesting challenges you faced while coding
Your entry is not permitted to be written by AI. For any feedback on this Challenge, please head over to the Meta post.
Integer Coding