+ 6

What is use of linked list ?

11th Jul 2019, 10:22 AM
Kunal
Kunal - avatar
7 Answers
+ 9
To be able to store collections of data/records of a given type without consuming too much space (especially when the size of records are large) and also be able to quickly insert records in the middle of the list (e.g. when the list is sorted).
11th Jul 2019, 10:56 AM
Sonic
Sonic - avatar
+ 3
You can learn more about linked lists here: https://leetcode.com/explore/learn/card/linked-list/ P.S. You need an account but it's free!
11th Jul 2019, 10:42 PM
CeePlusPlus
CeePlusPlus - avatar
+ 2
Thank you hothouseinwar polik
11th Jul 2019, 11:26 PM
Kunal
Kunal - avatar
+ 2
Linked list used in collections linked list is child of list interface In linked list insertion at the fisrt ,middle,last is very easy as well as deltion also But searching may take more time when compare to delete ,insert.
13th Jul 2019, 4:42 AM
Thriveni Sunkara
Thriveni Sunkara - avatar
+ 1
To have a dynamic array such that it can constantly grow, unlike a normal static array which you need to define how much space it will take at initialization.
11th Jul 2019, 3:59 PM
Hothouseinwar Polik
Hothouseinwar Polik - avatar
+ 1
Thank you Sonic
11th Jul 2019, 11:25 PM
Kunal
Kunal - avatar
+ 1
Thanks you Sonic
12th Jul 2019, 8:40 PM
Ram Bahadur Vishwakarma
Ram Bahadur Vishwakarma - avatar