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.
no need for abs in b, because those are squares already
Ways to improve performance:
using math.log is clever, but creating a list, calling range, reversing it, and creating a tuple is excess
the best among all others, because it doesn't waste memory and the fastest
it looks cool, but it wastes a lot of memory and cpu time
cons:
wasting too much memory with additional lists and slices
wasting too much memory with additional lists