Stacks An example of a stacks in computer science that steve presented in class at the beginning of the course. *** Had to attach as a RTF because study monkey wont accept .py files ***

2 Pages
159 Views
Unlock Document

Department
Computer Science
Course
CSC148H1
Professor
Steve Engels
Semester
Winter

Description
A Stack ADT implemented with a Listclass StackobjectA Stack ADTThis ADT supports the following operations pushitem add an item to the top of the Stack pop remove and return an item from the top of the Stack size return the size of the stackdef initselfCreate an empty Stackselfstacklistselfsize0def strself Return a string representation of this Stack returnstringfor item in
More Less

Related notes for CSC148H1

Log In


OR

Join OneClass

Access over 10 million pages of study
documents for 1.3 million courses.

Sign up

Join to view


OR

By registering, I agree to the Terms and Privacy Policies
Already have an account?
Just a few more details

So we can recommend you notes for your school.

Reset Password

Please enter below the email address you registered with and we will send you a link to reset your password.

Add your courses

Get notes from the top students in your class.


Submit