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.
It is Haskell. This is the fixed case he is talking about :
But from the description you would expect this :
I just looked at the code, it looks like a mistake in the reference solution which is recursive and calls itself as there is a check to return [] and it doesn't take into account that the sum of 0 + 0 == 0 .
I can easily adjust the code to make it return [0,0] but that will break a lot (all?) solutions or I can just change the description to put in that weird edge case.
0 is possitive.