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 have to disagree recursion is unecessary and clunky. What should be done is repeating a block of code n times, this is achieved by a loop of any kind not recursion. If you unroll above code you have alot of redundancy (null check and creating StringBuilder) and absolutely no benefit.
Using substring that often is very expensive.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
The correct number of minutes in this case is exactly 20, not less; no problem with the tests here.
Was this problem solved?
I'm trying to solve this kata in python, but I ended with the same problem.