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.
But it's not as readable as if statements, which are basically the same thing. (And the conditions and results aren't even symmetric...)
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Random tests don't work. The owner of this kata just gave up, I guess.
Haskell: "Falsifiable (after 2 tests and 1076 shrinks): expected: Single (-0.0) but got: Single (-0.0)"
Huh?
This comment is hidden because it contains spoiler information about the solution
Basically, I don't understand why the random tests ask for something like ["","aab","ab"] instead of ["aab","ab"].
DUH!
Haskell: How can you pass the test "returns a Single solution if a is zero and b is non zero" if "a" being 0 would cause division by 0? Should it be a Single NaN?
isSubstringOf isn't supposed to be a general-purpose substring-checking method but instead a more specific one that only works for how my attempt at the problem requires it to be used, so I'm assuming they wouldn't be checking things like "".
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
The test doesn't accept [""] but instead wants [], but the random tests want the opposite (Haskell). Impossible to complete.
Got it! Thanks! (I'm new to CodeWar, as you can tell)
Timeouts make it impossible to complete some perfectly reasonable solutions.
Loading more items...