Why is insertion and deletion faster in a linked list compared to an array?

前端 未结 0 557
一整个雨季
一整个雨季 2020-12-12 23:46

Considering that for both linked list and array, inserting/deleting data from middle has O(n) complexity, why is linked list being preferred? Is array\'s O(n) (p

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