Codeeval challenges

Written in PHP for old time's sake.