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.
:-) That's surely not called "a bug"... So we will see, if the world gets better now;-)?!
this is a bug fixing kata, blame timmy.
this is a bug fixing kata, blame timmy. The idea of a bug fixing kata isn't really to create a new solution but to fix the old one.
I've just created a new solution focused on performance, but trying to be readable.
Best practices is described here as "good balance of performance, readability and maintainability". In fact, it's relative. But in this case, I think my solution very readable, easy to maintain and the performance is good (it returns in 0.1s for the input 1,000,000). Of course I would try something more sofisticated if the requirement for performance was critical, but not seems to be the case.