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.
length
and can potentially be as large as it, so the return type should be the same as well:size_t
C Translation (user somewhat inactive).
You should not post
methods / code / solutions
without using the spoiler flag, or else anyone can see it. I have added the flag to your comment.but it's a palindrome...
When you observe the error feedback it tells you that your function returns
NaN
, so you should start debugging with console to see what is what and why that happens in the first place.Specifically, look at what
lastIndex
amounts to, and what results from that.Good luck!
First of all, please do not post as an
issue
when you do not know why your code does not pass. That's reserved for when there's a problem with the kata code and you can give examples as to why. Instead, post as aquestion
.how does the tester expected them to be spelled?
that would be a world better than expecting to one day have literally
dozens
of near duplicate katafixed in the last version
solved
Fork
I unpublished the kata because it lacks random tests.
Random tests are necessary for almost every Codewars challenge. Consuld Codewars documentation (Python authoring guide, authoring guidelines), authoring examples kata, or
#help-author
channel on Codewars Discord if you need help.No Random Tests
Please don't reinvent testing. Test function return values instead of capturing console output. This way, when tests fail, there is no debug output.
Read documentation and test suites of kata you've solved. Also, ask
Discord#kata-ideas
whether or not this is a duplicate.Duplicate?
Loading more items...