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.
There is no such sample test. Click reset.
That's a random test, the list of names is random too.
This comment is hidden because it contains spoiler information about the solution
Can you show me your code please ? I tested the string you gave me with the actual solution, and I got the correct answer, I'm pretty sure you're modifying the string given in input.
I don't see a test case in ruby where
covfefe("nothing")
returnsnothing
.Also, sometimes
coverage
is the last word so the sentence ends withcovfefe
not becausecoverage
was not found, but becausecoverage
is the last wordBecause it is an optimization problem (albeit one possibly "soft", but still challenging), so you will need to have a solution which runs efficiently, ideally in linear time (the sequence is read only once).
Cheers :)
Something about the number of spaces between "hello" and "world". In the HTML output they collapse to one space.