Skip navigation.

CS 135 Programming Logic

Urn World Tutorial

Chapter 5: Stacks

Urns are not the only ball containers that we can use. Stacks are data structures used throughout computer science. They are, for instance, an integral part of the design of general purpose computers. You will see lots of stacks when you take computer organization and assembly language. This chapter introduces the elementary properties of stacks.

  1. Stacks, Push, Pop and Top
  2. Stacks and Reverse
  3. Problems