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 is art..
This comment is hidden because it contains spoiler information about the solution
Fixed.
Fixed
Description updated.
10 months after newsh's post - same story. I noticed that the tests are like this:
assertTrue(Arrays.equals(new int[] {2,4,6}, EvenNumbers.divisibleBy(new int[] {1,2,3,4,5,6},2)));
Method input:
(int[], int)
Method output:int[];
There was no way to make it work with long values so I did the same as newsh did - I changed all "long" types to "int", to match my method with those tests.
However...
Is it supposed to be a tricky one or is it a mistake?
If it is supposed to be this way - maybe the description should mention that it contains an additional problem to solve?
Thanks!
There is a problem with method's return type.
Had to change the initial method from
to
for tests to pass.
Thanks!
Document it. What's the problem? Closing.
Feel free to raise a new documented issue.