[Instructions] [Search] [Current] [Syllabus] [Links] [Handouts] [Outlines] [Labs] [More Labs] [Assignments] [Quizzes] [Examples] [Book] [Tutorial] [API]
Back to Design, Revisited. On to Stacks.
Held Monday, April 12
Summary
Contents
Notes
push(Object o) -- add an element to the top of the stack
Object pop() -- remove an element from the top of the stack
Object peek() -- look at the element on the top of the
stack
boolean empty() -- check if the stack is empty
enqueue(Object o) -- add an object to the back of the queue
Object dequeue() -- remove an object from the front of
the queue
Object front() -- determine what's at the front of the
queue, but don't remove it.
boolean empty() -- are there any elements in the queue?
History
Back to Design, Revisited. On to Stacks.
[Instructions] [Search] [Current] [Syllabus] [Links] [Handouts] [Outlines] [Labs] [More Labs] [Assignments] [Quizzes] [Examples] [Book] [Tutorial] [API]
Disclaimer Often, these pages were created "on the fly" with little, if any, proofreading. Any or all of the information on the pages may be incorrect. Please contact me if you notice errors.
This page may be found at http://www.math.grin.edu/~rebelsky/Courses/CS152/99S/Outlines/outline.37.html
Source text last modified Tue Apr 13 09:20:29 1999.
This page generated on Wed Apr 14 09:30:54 1999 by SiteWeaver. Validate this page's HTML.
Contact our webmaster at rebelsky@math.grin.edu