Solutions for Codejam exercises.