You are viewing a single comment's thread. Return to all comments →
That looks a lot like the Haskell solution:
import Data.List(sort, group) main = interact isAnaPalin isAnaPalin s = if (length $ filter id $ map (odd . length) $ group $ sort s) > 1 then "NO" else "YES"
Seems like cookies are disabled on this browser, please enable them to open this website
Game of Thrones - I
You are viewing a single comment's thread. Return to all comments →
That looks a lot like the Haskell solution: