SortedSet

  • cpython 3.6.4

method

method cost
add O(lg N)
rem O(lg N)
get_score O(1)
get_rank O(lg N)