Question: What is a negative about a Linked List? Why not use it for everything? - It is highly wasteful, the Node class offers a ton
What is a negative about a Linked List? Why not use it for everything?
It is highly wasteful, the Node class offers a ton of overhead making the Linked List bloated
It doesnt adjust well to the unknown and constantly has to be copied and resized
It is generally a slow data structure Since there is not exploitable memory pattern, the entire list has
to be navigated for most operations Having it run in On time
If data is entered into it in sorted or nearly sorted manner, the structure breaks down and slows the
structure down immensely
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
