LinkedLists Flashcards
1
Q
List
Types of Linked Lists
A
Simple
double-ended
sorted
double linked
lists with iterators
2
Q
Define
Link
referring to linked list
A
What each data item is embedded in. Is an object of a class, contains a reference to the next link in the list. Self-referential, contains a field of the same type as itself
3
Q
Define
Efficiency of Linked List
A
Insertion and deletion at beginning: O(1)
Finding, deleting, or inserting in specific spot: O(N), but still can be significantly faster than arrar