Anonymous user
Largest int from concatenated ints: Difference between revisions
m
→Compare repeated string method
Line 74:
main = print (map maxcat [[1,34,3,98,9,76,45,4], [54,546,548,60]] :: [Integer])
where sorted = sortBy (flip $ comparing
maxcat = read . concat . sorted . map show</lang>
|