Facebook Hacker Cup 2012
Written by Sue Gee   
Saturday, 07 January 2012

Registration is now open for the second annual Facebook algorithmic programming contest and the qualification round takes place from 20-23 January.

Established last year the Facebook Hacker Cup is open to programmers from around the world and involves demonstrating accuracy and speed in solving problems.




The online part of the contest starts with a qualification round that lasts 72 hours and presents all-comers with three problems. Every competitor who correctly solves at least one problem will advance to Online Round 1, which lasts 24 hours on 28-29 January.

At this point the rules get more involved.

To advance to Online Round 2, participants must solve at least one problem correctly. If more than 500 people solve at least one problem correctly, then the top 500 participants will advance, as well as everyone else who answered the same number of questions correctly as the 500th-place contestant.

Online Round 2 will last just 3 hours on February 4 and will select 100 contestants to go forward to Online Round 3, all of whom will will an official Hacker Cup t-shirt.

The top 25 contestants to emerge from Online Round 3 which lasts 3 hours on February 11 will be offered an expenses paid trip to Facebook headquarters in California to take part in the finals on March 17, 2012.

Out of this group, one champion will win $5000, the title of World Champion and have their name  immortalized on the Hacker Cup trophy. A prize of $2000 will be awarded for 2nd place and $1000 for 3rd place. $100 each will be awarded to the rest of the finalists. 




If you want to see the type of problem that contestants will be facing, the problems from last year's qualification round are available (but you have to register to see them).

To give you a flavor of the contest, one of questions in last year's qualification round involved writing a program to read in a list of integers (always fewer than 100 in total) and print out how many ways each integer could be expressed as the sum of two squares. For example, 25 is 02+52 or 42+32.

Although this might sound like a mathematical question, it is really about how you implement a simple search for solutions as an algorithm. Notice that there is no requirement for the solution to be optimal - all you need is a working solution. Also remember that this is just one of three questions and only only have to solve one to qualify. 

Read our report on last year's final to discover just what a challenge it posed.

It sounds like fun and for a change trying out the initial stages of the competition doesn't sound too much of a commitment - but what if you won that round!

As it is currently constituted, the Facebook Hacker Cup is one of the very few competitions that actually is about programming skill in the sense of thinking up algorithms and implementing them. Most other competitions throw in other skills such as thinking up applications or building user interfaces. This one is pure code.

More Information

Facebook Hacker Cup

Registration page

Related News

Facebook 2011 Hacker Cup

First ever Facebook Hacker Cup World Champion


C book



or email your comment to: comments@i-programmer.info


To be informed about new articles on I Programmer, subscribe to the RSS feed, follow us on Google+, Twitter, Linkedin or Facebook or sign up for our weekly newsletter.


Final Date For VBScript Announced - What It Means

Microsoft has announced the official end of VBScript following years of reduced support. VBScript is one of the variations Microsoft created based on the original VB, and it has la [ ... ]

Visual Studio 17.11 Focuses On Quality Of Life

Microsoft has released Visual Studio 2022 v17.11 Preview 1, the first preview of the next update for Visual Studio 2022. The developers say this update focuses on quality of life improvements for deve [ ... ]

More News

Last Updated ( Saturday, 07 January 2012 )