Which data structure is most suitable when frequent insertions and deletions are needed at arbitrary positions?

  • A Array
  • B Linked list
  • C Stack
  • D Hash table

Explanation

A linked list allows insertion and deletion at any position by changing a few pointers, while an array must shift many elements.