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

Feature - Add Queue Data Structure Implementation #158

Merged
merged 5 commits into from
Aug 21, 2024

Conversation

EricNeves
Copy link
Contributor

πŸ“‹ Overview
This pull request introduces the implementation of a queue data structure, providing essential operations and functionality.

βœ… Features

  • Enqueue and Dequeue: Allows adding and removing elements from the queue.
  • IsEmpty: Checks if the queue is empty.
  • Size: Returns the number of elements in the queue.
  • Peek: Views the front element without removing it.
  • Clear: Empties all elements from the queue.
  • ToString: Returns a string representation of the queue.

πŸ” Details

  • Implemented core methods: enqueue, dequeue, isEmpty, size, peek, clear, and toString.
  • Implemented tests: Ensured the reliability and correctness of the queue operations.

Please review the changes and let me know if there are any suggestions or improvements needed. Thank you for your time and consideration! πŸš€

Copy link
Contributor

@darwinz darwinz left a comment

Choose a reason for hiding this comment

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

Great addition, thank you!

@darwinz darwinz merged commit 920c382 into TheAlgorithms:master Aug 21, 2024
2 checks passed
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