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 is probably the fastest solution, possibly because it does not use the
**
(square) operator. I compared these top two solutions usingtimeit
du dumma hua
Always load libraries at the beginning of your code. The reason is two-fold: those reading your code know exactly what libraries you are using, and it increases the efficiency of your functions (as the function would have to check if that library was loaded everytime it was called).
I have a more basic question. Is it better to import the library before the function or in the function? Normally I call it in the function, but for more complex problems I would load it at the start.
Yes I agree on this.
Better bearing performance in mind
This comment is hidden because it contains spoiler information about the solution
Haha ok
I just found you in the comments randomly
Check my solution btw
Haha do you just do it for no reason?
nice one