Example #1
0
    def __init__(self):
        '''
        Initializes an empty stack with no nodes.

        Inherited Attributes:
            - head
            - _length
        '''
        LinkedList.__init__(self)
Example #2
0
    def __init__(self):
        '''
        Initializes an empty deque with no items

        Inherited Attributes:
            - head
            - _length
        '''

        LinkedList.__init__(self)