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.
JS update fork
This comment is hidden because it contains spoiler information about the solution
It is unclear what the failure message means when a test failed:
What it's probably trying to say is using
0
and1
at indexi
to mark whetheri+1
can be represented by the ruler, but then again, this is not informative test feedback.There are no sample tests or random tests.
Haskell translation:
https://www.codewars.com/kumite/63b6be811d7882004bcdaef5?sel=63b6be811d7882004bcdaef5
Description should be language-agnostic and re-formatted
JS
Node 18 should be enabled
More tests should be added
Unnecessary logs should be removed
Useful assertion messages should be added
No random tests in CS
Go translation
This is just a duplicate to all those "find the odd one" katas.
And there's no random tests.
Here are my results from one of the test cases:
2
is clearly the odd one here. The test case is wrong.Really not clear on what I'm meant to do, here. "Fish the odd one out" implies I just have to find the value that isn't the same as the others. But then sometimes I return "no catch". Can't figure out the logic of what I'm meant to implement. Some clearer, definitive instructions would be nice.
Can't figure out how to figure out a "minimal ruler". Wouldn't just marking "1" be enough, as you could run "1s" end-to-end until you get the right number? I'm guessing I'm misunderstanding what a "minimal ruler" is.