In old times we all were dealing with Arrays, then link lists came boasting the following:
- it can grow and shrink at runtime by allocating and deallocating memory.
- Insertion and Deletion. Insertion and deletion of nodes are really easier.
- No Memory Wastage.
- Traversal.
- Reverse Traversing
While all above is true versus Arrays, I cannot find any benefit of a LinkedList over Generic List<T> ,as List<T> has all of the above properties.
Also, I have never seen LinkedList be used in any NET program.
I'm just looking to see if there is a situation which LinkedList<T> has an advantage over List<T>
===============================================
Thank you all for your feedbacks! The link above proved to be very helpful.
Based on the above link and comments, at least in .NET world, LinkedList seems to be much inferior to LIST.