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.
Fixed.
The internal solution is based on regular expressions and the assumption that the input array only contains empty strings and words (as in regex
\w
or[a-zA-Z_0-9]
), so it generally fails on strings like e.g.start-up
. When combined with the random word generation that mistakenly puts some{
character(s) in the last word on occassion the internal solution fails to use" and "
as the last delimiter and falls back to", "
.That means: If the last word contains an opening curly brace don't use
" and "
as the last delimiter but instead use", "
.Still getting this error on 17-11-2017
So confused :(
Still getting this error on 10/11/2017
Still not fixed...!!
But it is still not fixed!
Okay, I found the issue. It's actually with the way the test cases generate random words, although, I am unable to edit it.
For reference. In the
generateRandomWord()
function in the test cases,rnd.nextInt((123 - 97) + 1) + 97))
should be:rnd.nextInt((122 - 97) + 1) + 97))
.Sorry guys, that was my fault.
no, the solution doesn't work:
I just tested the solution and it works.
I've had issues with codewars before where the expected and actual results were the wrong way round.
Same problem in java