Question

Discuss the advantages and disadvantages of Linked Lists.  Be sure to use Big-O as part of your...

Discuss the advantages and disadvantages of Linked Lists.  Be sure to use Big-O as part of your reasoning.

0 0
Add a comment Improve this question Transcribed image text
Answer #1
Advantages:
------------
1)  given a node in linked list, it's easy to insert a node after it in O(1) time.
2)  It's easy to add a node at the beginning of the linked list. It takes O(1) times.

Disadvantages:
---------------
1)  It takes more space than the arrays.
2)  It takes more time to get an element given an index. It takes O(n) times. where as it only takes O(1) time in arrays.
Add a comment
Know the answer?
Add Answer to:
Discuss the advantages and disadvantages of Linked Lists.  Be sure to use Big-O as part of your...
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