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
I am able to complete all of the tests but the last one, under the sun. that one continues to time out no matter what I try. I dont want to post any code but I cannot figure out how to continue
OP solved it, closing
In short, you returned the wrong data structure.
Some languages (like Python) have a builtin function that finds the needle for you, and even in other languages you can rather easily iterate through the array to find the needle' position.
I keep getting this error Basic Test Cases
('found the needle at position', 3) should equal 'found the needle at position 3'
('found the needle at position', 5) should equal 'found the needle at position 5'
('found the needle at position', 30) should equal 'found the needle at position 30'
no where in my code is it supposed to return the "," and adding the varible with a + just causes errors
You need to remove the
pass
, as your function ends there. It's just supposed to be a placeholder for your code.This comment is hidden because it contains spoiler information about the solution