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.
Recursion doesn't mean worse time complexity.
It is a terrible code, i know...
Well, i tried not to use recursion (which means a worse time complexity) but failed because of "bananas". And finally i get the same solution with such a huge brunch of people.
But I still wonder a better algorithm. Can anyone find one?
after i saw the discussion...
Oh, no! what if i knew the function pow!
the example test case for python should at least include one that have both upper and lower letters, I think. I struggled for a long time, not knowing what's wrong for some of the final test, until I read the instruction again.
This comment is hidden because it contains spoiler information about the solution
i love the solution!
a good one liner but the efficiency is not the best, I think
This comment is hidden because it contains spoiler information about the solution