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

Queue data structure #60

Closed
TheSTL opened this issue Oct 10, 2019 · 5 comments
Closed

Queue data structure #60

TheSTL opened this issue Oct 10, 2019 · 5 comments
Assignees
Labels
enhancement New feature or request

Comments

@TheSTL
Copy link
Member

TheSTL commented Oct 10, 2019

Need following functions in queue:

File location - Queue

  1. empty() – Returns whether the queue is empty.
  2. size() – Returns the size of the queue.
  3. front() – Function returns a the first element of the queue.
  4. back() – Function returns a the last element of the queue.
  5. push(g) – Function adds the element ‘g’ at the end of the queue.
  6. pop() – Function deletes the first element of the queue.

Example:

Queue q = [1,2,3,4,5,6];
q.empty() false
q.size() 6
q.front() 1
q.back() 6
q.push(10) [1, 2, 3, 4, 5, 6, 10]
q.pop() [2, 3, 4, 5, 6, 10]

@SumeetHaryani
Copy link
Contributor

@TheSTL, can I work on this issue #60.

@ashokdey
Copy link
Member

I will be taking care of this.

@makmandy
Copy link

Does this still need to be worked on, since @ashokdey 's PR has been merged

@TheSTL
Copy link
Member Author

TheSTL commented Oct 14, 2019

I'm closing this issue.
Merged PR - [#80 ]

@TheSTL TheSTL closed this as completed Oct 14, 2019
@ashokdey
Copy link
Member

@makmandy you can look into other issues. We got a bunch of issues around. Also, you can look into other repos of this organization.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants