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.
Agreed, I modified tests to check the Euclidean division property.
I cannot see the failing string. This is driving me crazy!
Church Numeral had fold different than those of list.
Thank you for pointing this out. No, there is a good definition. The test suite was incomplete. Just added a new test
This comment is hidden because it contains spoiler information about the solution
Done.
This comment is hidden because it contains spoiler information about the solution
Empty list is not a solution. A valid solution should be a number not a sequence of number.
Explicitly mentioning that the empty list has a zero sum just reinforces the natural assumption that the empty sequence is a valid solution.
I'd suggest either allowing the empty sequence as a solution, which allows for more natural and elegant solutions since the empty list doesn't need to be special cased, or explicitly stating you're asking for the maximum NONEMPTY subsequence sum.
Empty list is considered to has zero sum.
Fixed description and related test case added.
Ah, great point. I'll add a test case!
Is this not what the
ex3
bit is doing?