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.
1 is not obvious. It's pointless.
There's no real-world application to testing whether a string ends in a blank string.
ANY string could be considered to 'end' in a blank string because adding a blank string to any string leaves it unchanged.
For that matter, we could say that any string begins, ends, and has infinite blank strings between every element across its length!
So why not test for and count all of them?
Pointless.
1 is obvious too.
2 is obvious. Are you sure that needs clarification?
Super easy in C :)
This comment is hidden because it contains spoiler information about the solution
The instructions are not clear.
You should mention what to expect if 1) ending is empty, and 2) ending longer than string.
Only then we can include proper test cases.
Good one! Only a suggestion:
Consider moving the comments of the code to the description of the Kata.
It cleans the code and gives enough info to solve the task.