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.
Almost the same solution as me. But I wonder why this doesn't get an error "list index out of range", when i+5 are > len(digits). Can someone explain please?
its not slower because you have one value that holds the current highest instead of a list with perhaps hundreds of numbers and then you have to search through that list for max value when u return it and python is known for lists being slow at a certain amount of data
I don't see why a comprehension would be less explicit...
Explicit is better than implicit
Probably slower...
Almost best practice, better than comprehensions, IMHO.
I'd change the
>=
to just>
There's no point in replacing the result if id doesn't actually change, right?
This comment is hidden because it contains spoiler information about the solution
This makes me sad.
Good point. Ill fix it in a moment. Thx for info :3
Why do you use '==' if you are comparing Strings?
some readings that might be of use
Thanks for report. Im working on it.
Aaaand its my 1st kata, so if there is anything wrong with it, don't hesitate to report. I'll do my best to fix any error ;)
Hi,