Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Queues - Andrea Valliere - Stacks and Queues JobSimulation #28

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

avalliere
Copy link

Stacks and Queues

Thanks for doing some brain yoga. You are now submitting this assignment!

Comprehension Questions

Question Answer
What is an ADT? ADT stands for Abstract Data Type and encompasses different ways to store data in accordance with behavior
Describe a Stack A Stack follows 'last in, first out' behavior. Only the most recently added item can be removed.
What are the 5 methods in Stack and what does each do? A 'push(e)' adds an item to the top, a 'pop()' takes out (or returns) the top item, 'empty?()' tells you if there's any data in the Stack, 'top()' will give you the top item, and 'size()' will state how many items are in the Stack.
Describe a Queue A Queue follows the 'first in, first out' behavior. An item must go all the way through to come out, much like a line of traffic.
What are the 5 methods in Queue and what does each do? 'Enqueue(e)' adds an item to the back, 'dequeue()' takes out an item from the front, 'front()' will tell you the front item, 'empty?()' will tell you if the Queue holds any data, and 'size()' will tell you how many items are in the Queue.
What is the difference between implementing something and using something? Implementing implies defining parts of code while using is calling on or accessing parts of code.

OPTIONAL JobSimulation

Question Answer
Did you include a sample run of your code as a comment? No

@avalliere avalliere changed the title Completed job simulation. Queues - Andrea Valliere - Stacks and Queues JobSimulation Feb 27, 2017
@sudocrystal
Copy link

Stacks and Queues

What We're Looking For

Feature Feedback
Implementation of Stack looks complete yes
Implementation of Queue looks complete yes

looks good

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants