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.
Read this: https://docs.codewars.com/training/troubleshooting#expected-the-same
This comment is hidden because it contains spoiler information about the solution
Sounds like an infinite loop.
Please use appropriate markdown formatting when posting code. See https://docs.codewars.com/training/troubleshooting#post-discourse.
No, your function doesn't return the correct answer. See https://docs.codewars.com/training/troubleshooting#.print-vs-return and https://docs.codewars.com/training/training-example#writing-a-solution.
This comment is hidden because it contains spoiler information about the solution
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.added a test to invalidate those solutions
done (
new String("needle")
is enough to create a distinct object)done
fixed
I don't understand what the problem is. The function accepts array called
haystack
, isnt this clear enough?This comment is hidden because it contains spoiler information about the solution
I managed to submit. I confused the expected result with the result returned by my solution.
Amount of information in this bug report makes it impossible to even start fixing the issue. Closing as per insufficient details.
some test are not matching with the function description make it impossible to submit even the solution passing all the other test Cases
Loading more items...