Skip to content

Added Queue Data Structure#15

Merged
the-codingninja merged 2 commits intoTheAlgorithms:masterfrom
LumaLivy:Queue
Oct 18, 2017
Merged

Added Queue Data Structure#15
the-codingninja merged 2 commits intoTheAlgorithms:masterfrom
LumaLivy:Queue

Conversation

@LumaLivy
Copy link
Copy Markdown
Contributor

I tried to follow the style of the Stack implementation closely to reduce confusion. Tested and works well enough. Submitted as part of #14!

@dynamitechetan
Copy link
Copy Markdown
Member

@r0hit-gupta please review.

Copy link
Copy Markdown
Member

@r0hit-gupta r0hit-gupta left a comment

Choose a reason for hiding this comment

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

Great job buddy. I would just suggest you to implement the same using an Array instead of an Object. This would remove unnecessary functions from the code and would run much faster.

@the-codingninja
Copy link
Copy Markdown
Member

Please follow along as @r0hit-gupta said and replace the object with array.
Thank you

@the-codingninja the-codingninja merged commit 0129ca4 into TheAlgorithms:master Oct 18, 2017
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