Solved

ASuppose You Need to Store a List of Elements, If

Question 2

Short Answer

a.Suppose you need to store a list of elements, if the number of elements in the program is fixed, what data structure should you use? (array, ArrayList, or LinkedList)
b.If you have to add or delete the elements at the beginning of a list, should you use ArrayList or LinkedList?
c.If most of operations on a list involve retrieving an element at a given index, should you use ArrayList or LinkedList?

Correct Answer:

verifed

Verified

Related Questions

Unlock this Answer For Free Now!

View this answer and more for free by performing one of the following actions

qr-code

Scan the QR code to install the App and get 2 free unlocks

upload documents

Unlock quizzes for free by uploading documents