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.
The description should probably state that the divisors are non-zero.
The link in the description is broken
Tests don't even run correctly.
python new test framework is required. updated in this fork
python new test framework is required. updated in this fork
This comment is hidden because it contains spoiler information about the solution
Even though an issue on this subject (changing the name of a parameter from
compare
tokey
) was marked as resolved, I feel the Python translation needs a bit more work. The description still contains Javascript code which includes the lineres = linkedSort(HowMany,Type,function(a,b){return a-b;})
. This still misled me into thinking the key parameter would in fact be a two-parameter compare-style sorting function, (which I would need to use cmp_to_key on before using it with any built-in Python sorting functions).It does not help that neither of the example tests have a custom sorting function, so there are no code examples to help demonstrate what sort of functions will be passed in.
JS: Not enough fixed test cases. I have to guess the method signature of the comparison function.
Ruby 3.0 should be enabled.
Ruby 3.0 should be enabled.
Ruby 3.0 should be enabled.
The class name should be in PascalCase.
It's not mentioned that
gueZZ
may not receive an argument at all.No random tests with big arrays.
Why are the lists so big?
10**6
elements would be more than enough, and wouldn't require people to wait for ~8 seconds in Python for no reason.Loading more items...