Add README and solution for day4
This commit is contained in:
@@ -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)) \
|
||||
) \
|
||||
) \
|
||||
) \
|
||||
)
|
||||
Reference in New Issue
Block a user