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

Add Queue Data Structure Under DSA folder #21

Open
Sofiyan-coder opened this issue Oct 5, 2024 · 0 comments · May be fixed by #22
Open

Add Queue Data Structure Under DSA folder #21

Sofiyan-coder opened this issue Oct 5, 2024 · 0 comments · May be fixed by #22

Comments

@Sofiyan-coder
Copy link

Queue: A queue follows the FIFO (First In, First Out) principle. The first element added is the first to be removed. It resembles a line of people where the person who arrives first is served first.

Operations:
enqueue: Add an element to the rear of the queue.
dequeue: Remove the element from the front.
peek: View the element at the front.
isEmpty: Check if the queue is empty.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants