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.
This was the same solution that I used but for some reason mine requires an index signiture, was this changed recently or is there a way to change the config so typescript is not is strict?
Nice annotating/commenting habits
This comment is hidden because it contains spoiler information about the solution
Clean code is always nice too look at. Professional looking code.
ciekawe podejscie
"s:str" represents that the given paramater is a string and "-> str" represents that the function returns a string
Finally a typing enjoyer such as myself!!!
Genius
if you have your order the other way, with red, yellow, green then you can do index - 1, and you won't hit your error - because 0 - 1 is -1 and that gives you the last item in the list - which is green, and the correct value.
It's an import for typing added in signature of the method.
But it does, that's type hinting, it's not enforced. I wouldn't use it in this case because it's misleading.
It doesn't work with non-integers.
can you add explanation why did you use import List etc
bit slow
(time/2) ?
Loading more items...