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.
"map read <> getLine" is extremely slow. Almost every problem on hackerrank will timeout.
Use something like
"map (fst . fromJust . B.readInt) <> B.getLine" with "import qualified Data.ByteString.Char8 as B"
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Range Minimum Query
You are viewing a single comment's thread. Return to all comments →
"map read <> getLine" is extremely slow. Almost every problem on hackerrank will timeout.
Use something like
"map (fst . fromJust . B.readInt) <> B.getLine" with "import qualified Data.ByteString.Char8 as B"