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.
Ah ok. Can you show me your code?
Not sure if you're still interested in the hint, but try to think about what will happen if your function is called with these parameters:
nextItem([1,2,3,4], 4);
Good luck!
You can add some print-statements to the test yourself, like this:
That way the terminal will print a test is done when it has succeeded.
Good luck!
Hey man, nice job on this one. Just finished this for Java and noticed a bug you might have missed :). In the test cases, you take an int[] as a List which causes some parsing problems when testing. Also, you didn't make the method static, so the testclass couldn't call it. I think this fixes it:
public static String match(int[] usefulness, int months) {
Hope this helps