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.
I don't remember this kata at all, but I see lots of other similar solutions... I'm not sure how I came up with this.
Can you describe the solution?
This comment is hidden because it contains spoiler information about the solution
That's because all sample tests have at least 1
'z'
.This comment is hidden because it contains spoiler information about the solution
Read again how to format the output (just in case, I can't see if the spacing is ok because you didn't use markdown formatting). And yes, the problem is with the trailing
\r
in some cases where there is no'z'
.This comment is hidden because it contains spoiler information about the solution
Language? Check your output doesn't end with a
\r
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Hahahahaha great !
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Thank you, i found a way that gives me b by using sum and a and O(n) works perfectly. Thanks
Loading more items...