Facebook‘s Hacker Cup is the Olympics of hacking.
Twenty-five finalists from 10 countries were flown into Palo Alto to compete. These few represent the elite cream of the crop, the top coders in the world, and as this post is being written, they’re all sitting in Facebook’s cafeteria, chewing pencils, staring at monitors and typing furiously.
It’s a bit mind-boggling to think about, all that raw talent and brainpower in a single room focused on a single task. Facebook has brought them all here on an all-expenses-paid trip to tour the Facebook campus and compete against one another in this event.
Almost 12,000 developers entered in the competition, which centers around algorithms, one of the more esoteric aspects of the hacker skill set.
This isn’t a hackathon, where devs and designers collaborate in teams to build one-off consumer apps; and it’s not one of Facebook’s Developer Garages, which focus on using the Facebook Platform. The hackers in this room are solely concentrating on finding solutions to elaborate and complicated computer science questions.
In each round, the hackers were given three problems to solve. Each problem had one correct answer. Contestants for the next round were chosen based on who could correctly solve the most problems in the shortest amount of time. The three problems for the final round were developed by ten Facebook engineers. (We’ll write about the questions and solutions, as well as the winners, in a separate post later tonight.)
Facebook’s Hacker Cup isn’t entirely unique; in fact, a lot of these coders already know one another from past hacker competitions and from sites like TopCoder. In fact, most of the highest-scored hackers on TopCoder are actually in the room today.
We talked with Facebook software engineer David Alves about the event; he said that, while being able to solve problems at this level is something of a marvel, it doesn’t necessarily apply to common day-to-day coding tasks. In other words, while this does give the company face time with the most skilled hackers around, it’s not a recruiting event. However, all the finalists were able and encouraged to apply for jobs at Facebook once the competition had ended.
Still, recruitment is only a happy byproduct of this event; Facebook, long renowned as being a singularly engineer-driven and engineer-focused company, is hosting this competition purely for the love of the game.
As the time on the clock winds down, only three hackers have submitted solutions to all three problems, and Alvers says it’s unlikely that all of these solutions will be correct, given the number of fringe cases for input that the devs have to take into account.
In the end, as the official Hacker Cup T-shirts read, “There can be only one.” The “one” in this competition will have his name engraved on a plate on the Hacker Cup trophy, which itself is a huge, dystopian-looking cube of concrete with a metal fist emerging from the top. However, three of the finalists will go home with checks: The first place finalist receives $5,000; the second place, $2,000; and the third, $1,000.
The Hacker Cup will be an annual competition; Facebook plans to improve and expand it in the years to come.
Check back later to read the problems (your mind will melt about two paragraphs in) and find out who won the first ever Hacker Cup.
In the meantime, here are some fun facts and a gallery of photos from Facebook headquarters in Palo Alto:
- Contestants by country included:
7 hackers from Poland,
6 from Russia,
4 from the U.S.,
2 from Japan, and
One each from China, Germany, The Netherlands, Singapore, Switzerland and Ukraine.
- The vast majority of the hackers were running Windows with Cygwin, a suite of tools that give Linux feel and functionality to a Windows OS.
- Exactly zero hackers were using Macs.
- Although several women made it into the later rounds, the final 25 hackers were all men.
- Most of the hackers were in their mid-twenties and have been writing software for years.
For more Dev & Design coverage:
- Follow Mashable Dev & Design on Twitter
- Become a Fan on Facebook
- Subscribe to the Dev & Design channel
- Download our free apps for Android, Mac, iPhone and iPad