Skip to content

Instantly share code, notes, and snippets.

@Shurlow
Last active March 6, 2018 17:39
Show Gist options
  • Select an option

  • Save Shurlow/0ab863e4c7fdedb9babcee32390a3dd0 to your computer and use it in GitHub Desktop.

Select an option

Save Shurlow/0ab863e4c7fdedb9babcee32390a3dd0 to your computer and use it in GitHub Desktop.
Lesson notes on stacks and queues

Stacks and Queues Instructor Notes

Objectives

  • Describe what a stack is
  • Define methods on a stack
  • Implement push method on a stack
  • Describe what a queue is
  • Define methods on a queue
  • Implement enqueue method on a queue

Describe what a stack is

Turn to your neighbor and explain what a stack is.

  • What are some real-world problems that use a stack?
  • How does a stack differ from a linked-list?

Define methods on a stack

What actions/methods can you perform on a stack?

Implement push on a stack

https://learn.galvanize.com/cohorts/231/units/6047/content_files/78631

Describe what a queue is

Turn to your neighbor and explain what a queue is.

  • What are some real-world problems that use a queue?

Define the methods on a queue

What actions/methods can you perform on a queue?

Implement enqueue on a queue

https://learn.galvanize.com/cohorts/231/units/6047/content_files/78631

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment