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.
comment your code
This comment is hidden because it contains spoiler information about the solution
nothing
what does 'count' do?
This comment is hidden because it contains spoiler information about the solution
I think... you forgot the spoiler flag. ;p
EDIT: and, "no", not exactly. You do only one addition with the first version.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Looks like an old CW issue that has been fixed.
Seems like the var
count
is unused here.I encountered the same problem (with the very obvious expression in Ruby as my answer), and hadn't a clue how to fix (circumvent) the problem in the test cases. While debugging, I put a
p string
as the first line in the method... and got the solution accepted. You might want to try that.Perhaps (now that I think of it) it has something to do with the Ruby version we're using?
Me too :/
Here also, getting same result.
After experimenting with the tests that it runs the problem is something to do with the randInt function. picking strings with random lengths from 1-7 errors every time, 1-6 passes everything, 6-7 errors, 7-7 all passes. Considering testing all length 7s should be the most memory intensive and it works... I'm really not sure what the problem is.
Mee too, any progress about this situation?
Loading more items...