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.
I think the docs on itertools are very nice and clear :)
This comment is hidden because it contains spoiler information about the solution
bisect gives the position in a sorted list to insert a new element and keep it sorted.
Like the name suggest, it uses a bisection algorithm so it's faster than just checking the list one by one.
The difference between left and right is when the element is already in the list since you could add it to the left or the right and keep the list sorted. It's needed because the range is inclusive. :)
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution