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.
[ 1, 3, 2, 5, 3 ]
is what's expected according to that messageideally there would be no rounding because why would there be? additionally, it doesn't specify tie breaker rule so you'll have python and js producing different results for 0.5
missing specifically for sample tests, they're present for tests, albeit multiple tests per it
stripping from each line would be unconditional but you do it inside an if-statement (which obviously isn't getting satisfied in this case)
edit: I would however argue for a rephrasing in the description so that it indeed says each line, because right now it's vague at best.
This comment is hidden because it contains spoiler information about the solution
bit sus that you show sorted input, that might not be what the input was.
if you increase the tolerance you won't need to invalidate existing solutions
https://github.com/codewars/hspec-codewars/blob/3b7d3602532a1cd44de7ac39adf45bcae17caf30/src/Test/Hspec/Codewars.hs#L125
I don't think that this kata translates particularly well to Haskell, but that doesn't look broken to me. It's up to you to make that "work". See the sample tests for what you're asked to do.
Don't realign the world until wrong people are right.
Even better, we have something here that catches them.
posting for notification purposes, description issue above
Producing right answer for some cases and wrong answer for other cases doesn't seem concerning to me. That's normal for incorrect solutions.
well, the tests are pointing out some scenarios where wrong answer is being produced. did you test those?
You're phrasing this a bit oddly - "the same problem" - yeah, other people have written incorrect solutions and have failed tests. But knowing whether other people have failed tests, that's not useful information, so you probably mean something other than what you said?
it thinks
0
is all9
'ssomething that's nearly as fast:
return set(str(x)) == {'9'}
.. or specialcase 0 I guess
fork here, it's roughly the same as the python one
?? read the description
Loading more items...