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

completed classroom exercise #40

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

Conversation

marisol-lopez
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? Abstract Data Type
Describe a Stack collection of data stacked on top of each other, so you can only access what is at the top first.
What are the 5 methods in Stack and what does each do? push- pushes an item into an array, pop - takes an item off the top and deletes it, empty- checks if the collection is empty, top - adds item to top and deletes, size - checks size
Describe a Queue collection of items, in which the first ones in will also be the first ones out. almost like a line.
What are the 5 methods in Queue and what does each do? enqueue - adds element to front of queue, dequeue - removes element from front of queue, empty - tells you if collection is empty, front - sends it to front of queue, size - will tell you how many elements
What is the difference between implementing something and using something? implementing something is when we are writing a method or class, where as using it would just be instatiating

OPTIONAL JobSimulation

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

@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

good job!

OPTIONAL JobSimulation

Extension Feedback
Does the code solve the problem to specification?
Is the code easy to follow?
Does the output look good?
Were provided variables and methods used appropriately and not altered in name or definition?
Were any new variables and/or methods made private to the class?

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