Solutions to popular programming contest problems