Google Code Jam 2016   Apr 10, 2016

Google Code Jam qualification round was just last weekend and although I didn't get time to participate on Saturday I did spend some time Sunday looking at the problems and having a go at solving them. I attempted two problems which were "Revenge of the Pancakes" and "Counting Sheep" and I've provided my solutions to these problems in this post.


Below you'll find three files. GoogleCodeJam.java is an abstract class that just handles input/output. Since this is common to more or less every Google Code Jam problem it made sense to share it through inheritance.

CountingSheep.java solves the Counting Sheep problem and RevengeOfThePancakes.java solves the Revenge of the Pancakes problem.


Tags for this post:

 Back