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.
Coffee translation
CoffeeScript translation
JS: Node v14 should be used along with its appropiate assertion tools (Mocha + Chai).
Refer to this and this
JavaScript tests allow RegExp objects with non-escaped strings to pass, where substrings like
"["
would fail.This should be tested or
substr
should be specified as only having alphanumeric characters in the description.Python translation kumited!
https://www.codewars.com/kumite/581714e8ca72ba77ba0001a3?sel=581714e8ca72ba77ba0001a3
Please check and approve!)
Are you sure the random tests in PHP are correct? I believe I am using the exact same logic in both Javascript and PHP but my PHP solution is failing a few random tests (my Javascript solution is fine). I printed
$m
,$n
and$position
for debugging and found out that my solution does not agree with the official solution used in the random tests when$position['x'] === $n
or$position['y'] === $m
where I believe the coordinate is just out of bounds. The output by the official solution used in the random tests also confirms this fact as there is no"*"
character in the output in such cases; however,"1"
s still appear in the expected output.