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

RM-23161 Implemented LL based Stack & tests #177

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

Spriithy
Copy link

Hi,

I saw the lack of a proper stack implementation in your repository, so I made one according to your guidelines & based on your other data structure implementations.

My implementation is a Linked-list based stack with O(1) overhead for Push/Pop operations. Only downside of this technique is space efficiency. But since you can make a stack of pointers, its OK.

Hope it will help!

@rmconsole3-wf rmconsole3-wf changed the title Implemented LL based Stack & tests RM-23161 Implemented LL based Stack & tests Sep 28, 2017
@aviary2-wf
Copy link

aviary2-wf commented Sep 28, 2017

Raven

Number of Findings: 0

@@ -184,6 +184,12 @@ structure which preserve and reuse previous versions. This uses a very
functional, cons-style of list manipulation. Insert, get, remove, and size
operations are O(n) as you would expect.

#### Stack

A persistent, immutable stack providing time efficient operations. All operations are applied to the stack itself and don't need
Copy link
Collaborator

Choose a reason for hiding this comment

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

This isn't persistent/immutable is it? I'm not saying it should be, but you modify the internal state in all the operations

@dustinhiatt-wf
Copy link
Contributor

@Spriithy Would you mind addressing @brianshannan-wf 's question?

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.

4 participants