开发者

Besides Inserts what are the advantages of LinkedLists over Lists?

开发者 https://www.devze.com 2023-03-17 09:44 出处:网络
I suspect that LinkedLists are better than Lists/Arrays for storing sparse data and graphs. Is this c开发者_开发百科orrect? What else are they better than Lists for?Another advantage for linked lists

I suspect that LinkedLists are better than Lists/Arrays for storing sparse data and graphs.

Is this c开发者_开发百科orrect? What else are they better than Lists for?


Another advantage for linked lists over arrays is that they are recursive structure which is useful in recursive algorithms. Also linked list is dynamic structure while array is a static structure.

0

精彩评论

暂无评论...
验证码 换一张
取 消