Is there a structure in Python similar to C++ STL map?

前端 未结 6 1148
没有蜡笔的小新
没有蜡笔的小新 2021-02-05 05:02

Is there a structure in Python which supports similar operations to C++ STL map and complexity of operations correspond to C++ STL map?

6条回答
  •  走了就别回头了
    2021-02-05 05:42

    Look at bintrees module (pip install bintrees). This package provides Binary- RedBlack- and AVL-Trees written in Python and Cython/C.

提交回复
热议问题