Question: If insertion and deletion occur frequently, which data structure should you choose, array list or linked list? And explain why. Appropriate length: 6-12 lines Explain
If insertion and deletion occur frequently, which data structure should you choose, array list or linked list? And explain why.
Appropriate length: 6-12 lines
Explain why the time complexity of searching an element in linked list is an O(n) if index of element is not known.
Appropriate length: 4-8 lines
Explain why the time complexity of inserting new elements at arbitrary locations in an array list is O (n).
Appropriate length: 4-8 lines
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
