|
Data Structures and Algorithms
with Object-Oriented Design Patterns in Python |
Objects of the OrderedListAsLinkedList class contain one instance attribute, _linkedList, which is a linked list of objects. The _linkedList is used to hold the items in the ordered list. Since a linked list is used, there is no notion of an inherent limit on the number of items which can be placed in the ordered list. Items can be inserted until the available memory is exhausted.