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.
Damn I see. I thought my solution was really bad compared to this one, but I didn't consider performance as things scale up.
Agreed, it has O(n^2) complexity but can be done in O(n)
I completely agree with you. Unfortunately, when it comes to python, "best practice" seems to be shortest answer regardless of optimisation. Keep flagging these.