Move 2015 out of the way.

This commit is contained in:
Bert Peters
2016-12-01 11:25:19 +01:00
parent a75d14ec17
commit b37fd44fa7
50 changed files with 0 additions and 0 deletions

17
2015/day-10/solution.py Normal file
View File

@@ -0,0 +1,17 @@
from __future__ import print_function
import itertools
def lookandsay(line):
return ''.join([str(len(list(it))) + c for c, it in itertools.groupby(line)])
line = "1321131112"
for x in range(40):
line = lookandsay(line)
print("40:", len(line))
for x in range(10):
line = lookandsay(line)
print("50:", len(line))