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.
The check is for blank spaces because
Thank you for making this Kata.
I really enjoyed it.
I completed this Kata in JavaScript, but I'm curious about why white spaces (
' '
) are accpeted between words, but non-breaking spaces ('\xa0'
) are not accepted.As far as I know, non breaking spaces do not collapse when rendered in HTML, while normal spaces might be collapsed.
Thanks.
Good! I'm glad for you:-)
Thanks again :)
My first algorithm was too slow, by selecting Node v0.10 in the dropdown menu and submitting the solution I saw it time out after 130 tests.
The error message I reported in my first post appeared with the default settings, Node v6 selected (and the message was quite confusing, because it seemed something server side).
My second algorithm had a "isPrime" function, but was slow because I was creating an array with all primes up to "n".
After some more attempts I managed to get it right.
Nice challenge :)
i tried running it and it still shows me the same error
Sieve is a good way but you don't need it here. I think you only need a
isPrime
function.This comment is hidden because it contains spoiler information about the solution
For the first error maybe you could try again and if that doesn't work report it as a bug: https://github.com/Codewars/codewars.com/issues.
This comment is hidden because it contains spoiler information about the solution
Python and Ruby translations submitted, if you want to approve them :)
[Extra kudos for the effort on the test cases, quite detailed and well-written, but I will tell you more on them possibly later]
This comment is hidden because it contains spoiler information about the solution