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 modified the original array at the line
copyNumbers.splice(indexMin, 1)
.I meant read these docs: https://docs.codewars.com/training/troubleshooting#post-discourse
As for the link you asked, try this one
You will not find definitions of "positive" and "non-negative" in JS documentation, because these are not JS concepts, but mathematics. "Mathematically speaking" (at least w.r.t. what is, I believe, the most common interpretation), the set of non-negative numbers and positive numbers are not exactly the same, and they differ very slightly (by one element, to be precise).
Your code is wrong. Read the docs about how to post code in discourse, please.
non-negative integers is not the same as positive.
There is nothing to fix (well, I restored a sample test in the description, someone messed it up, but that was a sample test too, so you should have seen it), neither in the description nor the tests, and I already explained what that means, bye.
Ignore letter case means a capital letter is the same as its lowercase version. How you handle that, it's up to you. Not a kata issue.
in this kata the needle is a string constant,
"needle"
. this is why the function only takes one parameter, the array in which to search.I don't understand what the problem is. The function accepts array called
haystack
, isnt this clear enough?kkkkkkkkkkkk Thats true, but... look at the primitive type, is int, that problem need to pe long. ^^