solutions to problems from www.codeeval.com