Where can I find the time and space complexity of the built-in sequence types in Python

前端 未结 3 1874
走了就别回头了
走了就别回头了 2021-02-12 18:15

I\'ve been unable to find a source for this information, short of looking through the Python source code myself to determine how the objects work. Does anyone know where I could

3条回答
  •  别那么骄傲
    2021-02-12 18:53

    Checkout the TimeComplexity page on the py dot org wiki. It covers set/dicts/lists/etc at least as far as time complexity goes.

提交回复
热议问题