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.
Choose your flavour ;-) - see above
This comment is hidden because it contains spoiler information about the solution
if it works, don't touch it!
damn it, guess I can't get it to run all the tests before timing out. Thanks for checking, I'll have to keep working on it :/
I have to disagree on that one:
Using the fastest fork of the current most upvoted solution from
@Blind4Basic
, this solution is achieving the same performance on batches of 3000 tests - 570ms in average.You can certainly stop to iterate earlier but linear complexity is the best you can achieve.
Also relying on Python builtins is certainly clearer (and usually faster) than hand-written loop logic.
Anyways, thanks for the compliment ;-)
This comment is hidden because it contains spoiler information about the solution
Solutions are not revalidated automatically when language version changes, because it would be too much work for servers. It can be revalidated manually, or when the code of the Python version of the kata changes.
This comment is hidden because it contains spoiler information about the solution