Skip to content

Savannah#23

Open
qqdipps wants to merge 4 commits intoAda-C11:masterfrom
qqdipps:master
Open

Savannah#23
qqdipps wants to merge 4 commits intoAda-C11:masterfrom
qqdipps:master

Conversation

@qqdipps
Copy link

@qqdipps qqdipps commented Sep 12, 2019

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

@CheezItMan CheezItMan left a comment

Choose a reason for hiding this comment

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

Nice work with the matching parens exercise. You also got the Stack working well. The Queue was to be done with a circular buffer, which is missing, you used a linked list instead.


def balanced(string)
raise NotImplementedError, "Not implemented yet"
char_map = {"]"=>"[", "}"=>"{", ")"=>"("}

Choose a reason for hiding this comment

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

👍

raise NotImplementedError, "Not yet implemented"
class Queue
def initialize(length=nil)
@store = LinkedList.new

Choose a reason for hiding this comment

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

I was asking you to implement the Queue with a circular buffer, this isn't it.

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