Some codeeval solutions.