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 test cases are not comprehensive, and some wrong code can also pass:
function divisibleBy(numbers, divisor){
return numbers.filter(i => numbers.includes(i / divisor))
}
In Rust max must always be excluded.
python:
Either the description needs a clear update and the sample tests needs a specific test (edit: more visible, actually! => not being the two last elements that aren't even visible in the sample tests window...) showing what to do with booleans, or those should be accepted as numbers: in python, bools are extending integers, meaning they ARE numbers. So the tests are currently inconsistent with the description.
Just a note, the test cases did not catch when the divisor was zero (Python 3.6), I included a check for it, but when I ran it without one no error came up.
Crystal translation
Dart translation
Factor translation
Julia translation
R translation