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.
Actually both of you are correct - the problem description is wrong:
"which given a string will output the error rate of the printer as a string"
I simply assumed the problem meant returning the string, but the description says "output".
Why would you add a newline to the output when it's not mentioned anywhere?
Same for me. Three solutions very similar to other solutions showed here and still got timed out. Odd.