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.
Printing the input: https://docs.codewars.com/training/troubleshooting#print-input
Sample tests are just that, a sample, it won't show all edge test cases.
They don't return the same for empty string as you claim, and that obviously is not a digit. You're wrong.
This comment is hidden because it contains spoiler information about the solution
I am having a hard time understanding that, can you please explain how it works without "=== 0".
Did you click
Reset
? Does that happen with the sample tests, the attempt tests or both?Make sure you didn't mess up the sample tests, backup your code, click
Reset
, paste it and try again.See my answer down below
See my answer down below
There is nothing to crop here (this is the correct answer after one generation), the result is always a rectangular matrix. You need to crop only if there is an external row or column of dead cells.
This comment is hidden because it contains spoiler information about the solution
Read this: https://docs.codewars.com/training/troubleshooting/#print-input use
console.log()
.Not the same, not a kata issue. The input of that test is
'O tempora o mores !'
btw.