Python computational complexity of array insert vs +

前端 未结 0 841
执笔经年
执笔经年 2021-01-23 09:03

I know that list insert operation is O(n). For example, arr = [2,3,4,5] and arr.insert(0,1) yields arr = [1,2,3,4,5] after doing 4 operati

相关标签:
回答
  • 消灭零回复
提交回复
热议问题