Add README and solution for day4

This commit is contained in:
2019-12-07 12:53:43 +01:00
parent ffbe0f66a1
commit 40e0caa31a
4 changed files with 67 additions and 0 deletions
+15
View File
@@ -0,0 +1,15 @@
from collections import Counter
low = 152085
high = 670283
print(len(list( \
filter( \
lambda x: len(set(x)) != len(x) \
and list(x) == sorted(x) \
and 2 in set(Counter(x).values())\
, map(str,range(low,high+1)) \
) \
) \
) \
)