Forum
Forum »
Competitions » CodeFu Seasonal » 2012 Summer » Problem Editorials » Problem 200  FrequentNumber
03.10.2012  # 1 
Problem 200  FrequentNumber
The solution of this problem is straight forward  find a way to transform and keep all the numbers. Since the count of numbers is small, any technique for storing and retrieving will work. Most people prefered to use a map as it is quite fast to code, easy to implement and gives best performance. As for the transformation phase, many people encoded all the possible outcomes. But there is an interesting solution that can skip this step and help you code the solution faster. This is how anikov solved this problem:


Please login to post reply.