Блог пользователя RedEyedDino

Автор RedEyedDino, история, 4 года назад, По-английски

I was wondering if there is a self-balancing tree in the standard library of python. I'm aware that there is a sortedcontainers library that has SortedList but this is not in a part of stdlib

  • Проголосовать: нравится
  • +3
  • Проголосовать: не нравится

»
4 года назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

Unfortunately, no.

»
4 года назад, скрыть # |
 
Проголосовать: нравится +1 Проголосовать: не нравится

Unfortunately, NO — but you can work around with This. Time-Complexity could be an issue on CF but works fine at CC, Atcoder.