0

Is array list better or link list in terms of memory requirement?

17th Aug 2016, 7:24 AM
Rajosee Banerjee
Rajosee Banerjee - avatar
7 Réponses
+ 2
Because linked list has pointers to both previous and next elements as well as current element.
17th Aug 2016, 9:01 AM
James
James - avatar
+ 1
What Snehal said. ArrayList uses about 4 times less data per value. Something like 4-6 bytes per value whereas linked list is 24bytes. There are ways to trim it down, but ArrayList is hands down the winner.
17th Aug 2016, 8:40 AM
James
James - avatar
+ 1
here you can find what is the disadvantage of linked list: https://www.cs.cmu.edu/~adamchik/15-121/lectures/Linked%20Lists/linked%20lists.html
29th Aug 2016, 11:17 PM
Samuel Mayol
Samuel Mayol - avatar
0
arraylist
17th Aug 2016, 7:30 AM
Snehal
0
Why link list uses more memory?
17th Aug 2016, 8:53 AM
WPimpong
WPimpong - avatar
0
why array is arrayList??
9th Oct 2016, 3:52 PM
Sanjay Ranavaya
Sanjay Ranavaya - avatar
- 2
jgdfgttfrddddddfgjjuuhggfddtgggfeedgjjgfdffghhshhhshhsiiwsvhehheehauauaahahhjejeoskjajhahahahajshashjnsevrysyysysyvvevgdqjkapmshsuwiwjjajhsysysjjwnnssuusukfkkrnrbrvvrbrnrnrmrkfkfkf
4th Oct 2016, 7:56 PM
Aila Damayanti
Aila Damayanti - avatar