Another year, another Facebook Hacker Cup
, and another opportunity for smart people who know at least one programming language to put their problem solving skills to the test. As in earlier years
, I will post a short analysis along with my solution for each problem, and I'll add some follow-up questions that people who have already solved the problems might find interesting.
A. Cooking the BooksProblem Statement
The qualification round starts off easily. For the first problem, we're given a number, and we're supposed to turn it into the highest/lowest value possible, by swapping just two digits. Warning: spoilers ahead! Read more »