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.
It's not necessarily obvious the 7000 is in ms. The code could alternatively be explicit/obvious about that.
Incredible. 0.003 seconds to compute S(1000, 1000) in my Jupyter notebook, whereas numpy solutions take nearly 9x that long. Apparently I need to research this to understand how it works.
I hope that if I keep trying, problems like this will be easier.. right? :*)
This is not a 7kyu kata...
In this case ("11 y.o") you can use a "split"-method 'int(s.split()[0])'
But task is very specific (from 0 to 9).
Very efficient man!
What the...
That's indeed very clever
It's simply easier on the brain to read code top-down. 121 char length > PEP8 limit.
People love to flex with one-liners, and sometimes they are great... but other times like this one, bad practice.
This comment is hidden because it contains spoiler information about the solution
Thanks for explaining it I was wondering
Sad that I forgot about slicing! :")
I too use a floor division, but not so concise way! Awesome!
Loading more items...