Due to popular demand
This commit is contained in:
parent
fd626a2f30
commit
c05e4b4081
|
@ -4,7 +4,7 @@ main = do
|
|||
print (day4 p [130254..678275])
|
||||
print (day4 p' [130254..678275])
|
||||
|
||||
day4 p = sum . map (fromEnum . p . show)
|
||||
day4 f = length . filter f . map show
|
||||
|
||||
p x | sort x /= x = False
|
||||
| nub x == x = False
|
||||
|
|
Loading…
Reference in New Issue
Block a user