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.
Maybe this'll be helpful for those using haskell who have issues with time limits and reading input. This is my go to for reading a bunch of ints:
importqualifiedData.ByteString.Char8asBimportData.List(unfoldr)importData.Char(isSpace)ints=unfoldr(B.readInt.B.dropWhileisSpace)solve(n:xs)=error"some solution to a hackerrank problem"main=solve=<<ints<$>B.getContents
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 →
Maybe this'll be helpful for those using haskell who have issues with time limits and reading input. This is my go to for reading a bunch of ints: