Question

Array lists and linked lists are both implementations of lists. Give an example of a situation...

Array lists and linked lists are both implementations of lists. Give an example of a situation where an array list would be the better choice and one where a linked list would. Explain the reasons in each case.

0 0
Add a comment Improve this question Transcribed image text
Answer #1

ArrayList is better choice when you have operations like searching and sorting because accessing elements from Array is much faster than LinkedList because we can access elements using indexes

LinkedList is better choice when you have operations like Inserting and deleting because deleting elements from LinkedList is much faster than Array because we need just remove the links we dont need to shift any elements in Linked list

Note : Please comment below if you have concerns. I am here to help you

If you like my answer please rate and help me it is very Imp for me

Add a comment
Know the answer?
Add Answer to:
Array lists and linked lists are both implementations of lists. Give an example of a situation...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT