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 comment is hidden because it contains spoiler information about the solution
That is normal. My first attempt also timed out at that test.
OP solved it, closing
In short, you returned the wrong data structure.
From what you said it seems like you're returning the string 'found the needle at position' and the index separately, which effectively returns a tuple (or whatever that data structure is called in the language you did this in).
You need to add the index at the end of the string.
Almost all languages have some builtin function that converts numbers to strings. Try looking for it in your language.
You need to remove the
pass
, as your function ends there. It's just supposed to be a placeholder for your code.