Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
Apparently you figured out the problem.
There is no lists of infinite length in this kata.
Yes, gotcha. If we're expected to be able to solve infinite-length lists, it would be helpful if that were in the problem description.
Is it better now?
@Bodigrim, your comment is marked as a spoiler
I am working in haskell.
This kata is available in two languages. Please specify which one (JavaScript or Haskell) you are using.
Mine also always runs out of time, but my solution should be incredibly efficient. I've been pulling my hair out the past week, because (locally) I can't make my solution take any time at all.
If it always runs out of time, how do you now that it can pass the test? There are performance-oriented test cases, e. g., lists of 10 six-digit numbers.
My code can pass the test, but always runs out of time.
Is there some large example I should pay attention to?
This comment is hidden because it contains spoiler information about the solution