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
numbers
contains duplicate values,.index()
will always return the index of the first occurance, messing up your results. There are easier ways to keep track of indexes with built-ins in Python.This comment is hidden because it contains spoiler information about the solution
Earth is flat, pigs have wings, and
0
is not a valid index.Please motivate your comment.
For JS: "Expected -1 to equal +0"....but +0 should never be an answer, if one has followed the instructions.
JS here. Why would the only test that's failing be the one with a super long array as param?