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.
You are thinking of the value that is generated for that input, but that position may be used by the number generated by a later member of the sequence.
Bear in mind that 1) the array has to be in order and 2) there are no repeating positions.
I had the same issue for a bit. You didnt calculate far enough down the list. 57 should be there.
Language JS ?
Sorry there are no errors in the tests.
Not a suggestion prior to the kata ~~
If you're not sure what's not working for you, please post as a
question
instead. Anissue
is for when there's a clear problem with the kata. Also, please mention your language. Take note that almost 37K solvers have completed it in JavaScript. Here's some documentation on Troubleshooting-your-solution. If you wish, you may post your code with proper markdown and remember to use a spoiler tag. Then someone may be able to help you.