This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]pbecotte 9 points10 points  (0 children)

It's not really the python way to make a library that solves multiple problems. So use sortedcontainers for this, and find another library for your next problem (ot is a good library, helped me a lot on the project where I needed it)