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.
This comment has been reported as abusive
( JS )
Random tests runtimes vary wildly. Try to generate more consistently distributed sizes.
This comment is hidden because it contains spoiler information about the solution
I got different results in my local IDE and on Codewars using the same inputs and code. Did I overlook something here?
This comment is hidden because it contains spoiler information about the solution
It might be a good idea to change the expected output from bad values of
n
from empty collections toNone
/null
/Option
(I think?) in Python/JS/Java for future maintainability reasons. Should be possible to preserve old solutions as well.If we need to return two sets of equal sum, wouldn't it be more appropriate to return the two sets as, well,
set
s instead oflist
s?Duplicate of https://www.codewars.com/kata/59c919326bddd238e9000103
I find the naming of arguments in C# utterly confusing. The name
length
does not seem, at least to me, to be a good complement ofwidth
. The "length" and "width" seem to overlap in meaning, and I am not sure if "length" applies to rectangular matrices at all. I would suggest renaminglength
towidth
. With current setup, it's difficult to tell what argument relates to what dimension of the output matrix.Why do you create "invalid" test cases? Just replace the
currentValue
by something different than 0 or 1 should suffice, no?A duplicate to https://www.codewars.com/kata/5715508de1bf8174c1001832 (though that kata is extremely lenient on performance requirements).
Random test cases immediately have large number of inputs. This is very annoying to debug.
Duplicate.
Sample / actual testcase: Missing testcase/solution import.
eg:
test.describe
/test.it
For example:
If this is a performance kata you should add the label "performance"
Loading more items...