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.
Retired as a duplicate. See https://github.com/codewars/content-issues/issues/49.
JS tests: size=1..20
Ruby tests: size=0...50
Python tests: 1...1000, blowing up the output buffer on failure.
This comment is hidden because it contains spoiler information about the solution
You're doing recursion wrong, that's why your code fails. You need to return the recursive call to your function.
This comment is hidden because it contains spoiler information about the solution
Nothing really doable about that: when the output is wrong, expected and actual are printed to the console, which is limited. Considering the size of the matrices, any wrong code will saturate the buffer. Nothing to do about that. You won't see the problem if you have a working code.
The only problem is if you use a language which is showing the expected result even when the test is passing... => is that the case? (not closing to keep the edit panel accessible)
I'm afraid not, since the task is literally creating an
m*n
table.Does anyone know a solution for this that is not O(n^2)?
multiplication_table(860,804)
STDERR
Max Buffer Size Reached (1.5 MiB)
please fix
Great kata!
I know that variables are references to objects
Do you know something about references/pointers/aliases?
Loading more items...