We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
Using Data.Map or even Data.Map.Strict is not enough for Haskell. You need to either use Data.IntMap.Strict or Data.HashMap.Strict, enable the {-# LANGUAGE Strict #-} extension, and use ByteString instead of String.
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Fighting Armies
You are viewing a single comment's thread. Return to all comments →
Using
Data.Map
or evenData.Map.Strict
is not enough for Haskell. You need to either useData.IntMap.Strict
orData.HashMap.Strict
, enable the{-# LANGUAGE Strict #-}
extension, and useByteString
instead ofString
.