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.
In this case, you're returning input (which is
null
). Instead, you should be returning an empty array. The problem in on line 7.By the way, relevant link: markdown formatting
Just one problem, that solves it all.
In Java, you don't compare strings like that. Use
a[i].equals(l[0])
instead. Not sure why it passes the example tests.Actually, I see you solved the kata. Hope you enjoyed it! :)
This isn't an issue, as there are 86 Java solves.
I just ran a correct reference solution against that input, and the result definitely should be z.
Please post your code here and mark the post as having spoiler content so we can help. Cheers.
Also, I'll give you a hint in case this has to do with the problem: for fixing the overflow, try using the modulo operator.