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'm having an issue with this test "do_test(0, 3, 3, gen_0, 3, 3, gen_0);", I get "Test Crashed Caught unexpected signal: 6"
But when I run the function with the same arguments on my own I don't get any error.
it's so easy for me. I'm very happy to improve my logic in javascript with codewars
This is not correct thing to do. What will happen if
$a
is 0, and$b
is -1? What will your solution return, and what is the correct answer?Your solution has a bug, it's not a kata issue.
In what language?
This comment is hidden because it contains spoiler information about the solution
The grid should expand as much as you might need (and in any direction), no matter if it becomes different from initial one.
I like this kata, I haven't finished it yet but the wording has left me a bit confused on whether the grid should expand/shrink based on the cells, if the grid can be unevenly shaped such as 4x2 if necessary. at first I thought it looped around so if the cell was on the lower right corner the top left corners would count as its neighbors.
Still enjoying writing it atm.
Test coverage is very inefficient. Not only is the amount not up to par (only 4 random tests and 1 fixed test), such cases are not covered:
Names only consist of
[firstname] [lastname]
/[Last Name],[First Name]
which will invalidate this solutionNames only consist of
[First Name] [Middle Name] [Last Name]
which will invalidate this solutionNames only consist of
[Last Name],[First Name] [Middle Name]
which will invalidate this solutionNames only consist of
[First Name] [Middle Initial] [Last Name]
which will invalidate this solutionNames only consist of
[Last Name],[First Name] [Middle Name]
and[First Name] [Middle Initial] [Last Name]
which will invalidate this solutionI have yet to test other combinations of precedence rules, but I think the random tests should be setup to generate each ruleset in their corresponding groupings. (Links above may look similar, but they are not, any good souls who want to fix this kata may refer to this original solution that covers all cases and compare with above ones)
This kata felt somewhat convoluted.
This comment is hidden because it contains spoiler information about the solution
Exactly, it is necessary to clarify that part. It is important to indicate that the origin of our 2D plane cannot contain an entire row or column of zeros; in that case, they must be eliminated.
It is not clear from the description if
generations
can be0
, in which case the user would supposedly still have to trim the universe, i.e.should return
done
Approved
Ah. I found the Node version selector.
I meant; returning the original 'cells' input throws the syntax error whole halting the test.
Loading more items...