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.
I think it's okay to keep different types as inputs but the description is really off
in context of Haskell seems like a literal requirement for the arg to be
[Integer]
typeThere should be Haskell-specific description clarifying that input is a list of
Integral
derivativewouldn't it be fine if simply defining the type in the default code? it's quite odd for the solver to specify the type when they don't .. know what it should be
Yeah, that's nowhere remotely close to what the kata is supposed to test, which is a problem in itself.
It's solvable using typeclasses
But yeah it does put more of a challenge compared to other languages
Haskell solution's type expectations are weird. There's a mix of Ints and Integers in the input, and it makes it nearly impossible to properly handle the data.
Trimming whitespace on its own has been thoroughly covered, but this involves several other steps in order to trim each individual line. I looked and could not find another kata that covered it. I'd be happy to update the tests when I have a chance.
Suggest having a thorough look at this for tips on authoring a kata: https://github.com/codewars/codewars.com/wiki/Tutorial%3A-Create-Your-First-Kata
Issues: