+ 1

Which is better arrayList or LinkedList ??

I need your oppinions

20th Feb 2020, 12:59 PM
Abdeljalil Idbrahim
Abdeljalil Idbrahim - avatar
4 Answers
+ 6
Both are good at some critical situations. ArrayList is much faster than linkedlist specially in search operations. And no waste of memory at all. Linkedlist are good choice when you have to perform massive numbers of insert and remove operations. So I think linkedlist will be a good choice for larger applications.
20th Feb 2020, 1:16 PM
0_O-[Mägár_Sám_Äkà_Nüllpøïntêr_Èxëcéptïön]~~
0_O-[Mägár_Sám_Äkà_Nüllpøïntêr_Èxëcéptïön]~~ - avatar
+ 3
First analyse a problem to understand the requirements and then make a decision based on it. Both are pretty similar when it comes to small scale operations but differ when it comes to large scale operations based on the time complexity, like 0_0 Mägár Sám Äkà Nüllpøïntêr Èxëcéptïön has mentioned.
20th Feb 2020, 1:47 PM
Avinesh
Avinesh - avatar
+ 3
20th Feb 2020, 3:26 PM
Denise Roßberg
Denise Roßberg - avatar
+ 1
that depends on what you want to use it for, they're are both better because they get the job done
20th Feb 2020, 1:05 PM
✳AsterisK✳
✳AsterisK✳ - avatar