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.
Good implementation, but you should use std::isalpha instead of the 'a','z' check.
Shouldn't you have a last return instruction ? Does it work without it ?...
Shouldn't you have a last return instruction ?
Instead of the break instruction you could have put the return instruction directly.
This comment is hidden because it contains spoiler information about the solution
This seems like recursive-math thinking to me; and translating it into code is trivial. It's the base for dynamic-programming algorithms, I think.
:(, I personally never caught this math thinking skill. But it's great, inspiring; if I see some more of these, I may be able to catch this thinking-technique myself :).