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.
I code on PHP, i just don't understanding why it fails in logic section, it doesn't even saying why it fails it just saying "Invalid input" so i don't even getting where it fails, when i run every unit test in my ide everything work fine but when i attempt it fails for some reason, so plz take a look.
The problem is poorly written, it needs the grammar checked so that it can be read easily.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Java Translation
ddd0 unit
,ddd.d unit
like @slawaa said, my code resulted in some variations that diverged by 1.
Multiple attempts were made before I get to pass the test, despite the same code.
From the description it is unclear where to ceil in the calculation process. Because of that my solution did run randomly into errors because the results diverged by 1 here and there. It passed after I got "lucky" on an attempt iteration.
This comment is hidden because it contains spoiler information about the solution
Expected: [135, 101, 128], instead got: [135, 102, 128]
Expected: [132, 86, 174], instead got: [132, 87, 174]
2 errors, but i calculated on the calculator and displayed my values
At least in Ruby: solutions that use character codes instead letter indices pass the tests.
https://www.codewars.com/kata/reviews/59582f6dd1773f3dcb00013e/groups/595967d5b7a2173ff6000543
This comment is hidden because it contains spoiler information about the solution
Hello!
Kata "task" has no mention of sorting keys:
If automaton receives an object it will return an array of 3 elements: [n, keys, values] where n is the number of keys, keys is an array of all keys, and values is an array of stringified values. Examples:
all keys for array with length == 12 is:
but if you sort keys array - this will happen:
So, i want to suggest to (1) add a sorting requirements to the description, or (2) fix the tests (something like:
sort((a, b) => a < b ? 1 : (a > b ? -1 : 0))
can help (maybe?)).Loading more items...