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.
Fixed
Fixed
stated in the description.
Yeah, it's still broken a year later which was surprising. It was really confusing at first because I was assuming the test and function signature would be compatible, so figured it must have been a bug in my code when (for once) it wasn't. Oh well...
The latest site updates, available currently only on http://preview.codewars.com, should allow you to edit the Haskell version.
Well, sure. If you're only doing 0 - 12, actual best practice is to define an array with the answers in it and pull from there. But that just seemed lame.
That's basically the gist of it, yeah. It's clean, easily understandable and not verbose - but not the most efficient solution.
Same here. My solution is weird as a result.
Agreed. This is not only poorly worded, but breaks with intuition. For most applications, whitespace is whitespace. If you want to differentiate between ' ' and '\n' you should do so explicitly.
At this point, only moderators can change the test cases. Sorry :/.
I wasn't really paying attention when I translated this kata and was probably very tired, sorry. I had a quick look at the test cases and thought that a negative number
x
should be prime ifabs x
is prime. However, I can't change the test cases anymore, so you better post an issue if you want to get this fixed.This comment is hidden because it contains spoiler information about the solution