Question

State two advantages of implementing Stack using LinkedList instead of ArrayList c .. A daing. la ue 0 hecking. .for. .a tching .de.l n. .a.pYg xam
0 0
Add a comment Improve this question Transcribed image text
Answer #1

For storing the elements both Array and Link list are used.The only difference is that array have contigous memory allocation while Link List have non contigous allocation.

There are some advantages of using link list instead of array :

1.There is no size issue in Link list but array have size issue(The size of the arrays is fixed:)

2.Ease of insertion/deletion : Addition or deletion of the element in link list is easy as compare to array.

3. Since Link list does not have size limit so elements can be added to any extent.

Basically link list have two main advantage over array i.e Dynamic Size and ease of inserting and deleting the elements.

Add a comment
Know the answer?
Add Answer to:
State two advantages of implementing Stack using LinkedList instead of ArrayList c .. A daing. la...
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