Data Structures and Algorithms with Object-Oriented Design Patterns in Python
next up previous index

Linked-List Implementation

 

In this section we will examine a linked-list implementation of stacks that makes use of the LinkedList data structure developed in Chapter gif. Program gif introduces the StackAsLinkedList class. The StackAsLinkedList class is a concrete class that extends the abstract Stack class defined in Program gif.

   program5399
Program: StackAsLinkedList __init__ and purge methods.




next up previous index

Bruno Copyright © 2003, 2004 by Bruno R. Preiss, P.Eng. All rights reserved.