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.
Description should be language-agnostic
Java translation
python new test frameworks
This comment is hidden because it contains spoiler information about the solution
As stated at Wikipedia:
So I think it should be mentioned in description that which method(1, 2, 3, or 4) should be used for calculating lower and upper quartile of a sequence with odd number of data.
Python new test framework should be used (Refer this for more detail)
python new test framework is required. updated in this fork
This comment is hidden because it contains spoiler information about the solution
In Java, it is rather hard to read values from
Limit
if the names of the exposed variables are never mentioned, and the definition ofLimit
is not available.Also missing an edge case where
required = 0
and hence should return0
.The kata needs actual random tests: the only places where the test case are randomized all expects
-1
.Description should be language-agnostic
The range of
n
should be statedIf you want to actually test our knowledge of
is_correlation_causal
, you can't just put in a return value in initial code that can pass the tests: it doesn't teach anything if we don't even to touch it in the first place. At least it should be something likepass
.Even the linked Wikipedia article contains multiple definitions of correlation coefficient, so it's unclear which one is expected.
Laziness isn't enforced.
Loading more items...