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.
How is this a suggestion?
Repeating a char is not a novel idea.
This comment is hidden because it contains spoiler information about the solution
Added.
Fixed.
"try Reg" meant "try regular expressions" probably.
the kata description is innacurate.
if str = 'abcdefg' , the result should be 'a**'
but it should be
if str = 'abcdefg' , the result should be 'a******'
Also, what do you mean by "try Reg" ?
ok,thanks for advice
needs random test cases.