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.
thank you good sir
I think the docs on itertools are very nice and clear :)
googled but still didnot figure it out , can you explain what accumulate does ?
lol
thank you anime profile pic idvidual
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. :)
never thought about summing the time up, really smart but can you explain what bisect_right() and bisect_left() do ?
appreciate it
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution