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.
Why isn't there a test
100000 100000
1 -1 1 -1 1 -1 ...
?
I've seen several naive solutions which have 100 points but it took them over 70 seconds to pass this test on my computer while correct solutions written in Haskell work in less than 2 seconds (approximately 1.2-1.4 seconds for several solutions)
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Order exercises
You are viewing a single comment's thread. Return to all comments →
Why isn't there a test 100000 100000 1 -1 1 -1 1 -1 ... ? I've seen several naive solutions which have 100 points but it took them over 70 seconds to pass this test on my computer while correct solutions written in Haskell work in less than 2 seconds (approximately 1.2-1.4 seconds for several solutions)