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 for Python
every time I use them I feel disgusted with myself but do it anyways because it looks cool
Agreed, I just like the ingenuity of it :)
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
During which test does this happen? What parameters did QuickCheck generate? Also, could you (again) share your code? There might be some floating point problems which I didn't address when I originally translated the kata.
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
It asks for any kind of strings. This includes
""
. Note that the tests cannot get changed since there were already +500 solutions (see also 1 and 2).Basically, I don't understand why the random tests ask for something like ["","aab","ab"] instead of ["aab","ab"].
DUH!
The description should probably contain a sentence on what
x
is. After all, you're looking for ax
withAx² + Bx + C = 0
.If
a
is zero, you have0x² + bx + c = 0
. You should be able to solve that one without the formula ;).Loading more items...