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.
If I understand correctly: for input
[1, 3, 5, 9]
and2
, you understand that result should be -1 (because 2 is not in the array), and kata expects 25 (because value 5 is at index 2). Do I get the problem right?Not a kata issue.
Currently, your solution passes without problems. Can you show what code and what inputs cause problems for you?