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.
It's not absurd because random tests are never the same test ... because, well, they are random. That's why your code passes a different amount of them on each run of the
ATTEMPT
.yes but the random tests passing is absurd, like a test in ATTEMPT at once is failing but if i run ATTEMPT again, the same test is now passed,why is that?
and by the way I un-flagged your comment as a spoiler because it did not discuss / reveal any solution concepts / code
Your code only passes all the sample tests.
On running
ATTEMPT
your code is tested by multiple random tests, and it does not pass all of them.im having a problem where my code passed all the tests but in the attempt section each time i run the tests it shows different number of passed and failed test each time.
any reason or solution for that?
Latest Haskell version added random tests.
This comment is hidden because it contains spoiler information about the solution
can someone explain it?
how is that so?
Not a kata issue. See https://docs.codewars.com/training/troubleshooting.
50 passed, 1 failed; all random tests are passed test gives the "expected '' to equal '1'" on fixed tests
This comment is hidden because it contains spoiler information about the solution
One of the best!
So many solutions invalidated because they either handle
0
wrong, or rewrite the function signature to(Integral a) -> a -> a
..I knew it! (There is should be an elegant "python" way to do that)!
Loading more items...