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

mac cedar #56

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

mac cedar #56

wants to merge 1 commit into from

Conversation

mac-madison
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?
Describe a Stack
What are the 5 methods in Stack and what does each do?
Describe a Queue
What are the 5 methods in Queue and what does each do?
What is the difference between implementing something and using something?

OPTIONAL JobSimulation

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

Copy link

@kyra-patton kyra-patton left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✨😎 Very nice work Mac! Super clean implementations. I'm marking this as a yellow because the comprehension questions are not filled out. If you'd like a green score, feel free to resubmit with the comprehension questions submitted but a yellow is considered passing.

Let me know what questions you have.

🟡

"""
pass
if self.size == len(self.store):

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"""
pass
if self.empty():

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"""
pass

if self.size > 0:

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"""
pass
return self.size == 0

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"""
pass
q = []

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"""
pass
self.store.add_first(element)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"""
pass
return self.store.remove_first() if not self.empty() else StackEmptyException()

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"""
pass
return self.store.empty()

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"""
pass
return self.store.visit()

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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