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.
Please fix the data type as @phaul has noted. Both of the test case, eg 2149583361 are > maxBound :: Int32. Word32 is the correct type for unsigned Ints. Otherwise the test cases fail as it is trying to parse a negative number. This kata is currently unsolvable as is. Thanks.
For reference, maxBound :: Int32 == 2147483647 and minBound :: Int32 == -2147483648 while maxBound :: Word32 == 4294967295 and minBound :: Word32 == 0
This comment is hidden because it contains spoiler information about the solution
The fixes look good. There is one final issue in the first test case.
This test case should be against input3 and expecte3
Also, I'm not marking this as spoiler because it is one of the given test cases to the problem. Let me know if I should change this.
A few issues with this kata:
the module name doesn't match between the kata and the test cases. Not big deal, but I couldn't verify if the test runner worked properly because of number 2.
The type of maximumSum and the expected output don't match. I don't understand what the comment above the function means,but [a] -> [a] will never == [a] -> a
If the problem was clearer that we were to implement 2 functions or if the test cases were going to call sum on the returned list, that would help a lot.