Home
Recent Q&A
Java
Cloud
JavaScript
Python
SQL
PHP
HTML
C++
Data Science
DBMS
Devops
Hadoop
Machine Learning
Azure
Blockchain
Devops
Ask a Question
What are different operations available in queue data structure?
Home
DBMS
What are different operations available in queue data structure?
0
votes
asked
Aug 9, 2023
in
DBMS
by
DavidAnderson
What are different operations available in queue data structure?
data-structure-interview-questions
Please
log in
or
register
to answer this question.
1
Answer
0
votes
answered
Aug 9, 2023
by
DavidAnderson
enqueue:
This adds an element to the rear end of the queue. Overflow conditions occur if the queue is full.
dequeue:
This removes an element from the front end of the queue. Underflow conditions occur if the queue is empty.
isEmpty:
This returns true if the queue is empty or else false.
rear:
This returns the rear end element without removing it.
front:
This returns the front-end element without removing it.
size:
This returns the size of the queue
Related questions
0
votes
Q: What are different operations available in stack data structure?
asked
Aug 9, 2023
in
DBMS
by
DavidAnderson
data-structure-interview-questions
0
votes
Q: What are differences between stack and queue data structure?
asked
Aug 9, 2023
in
DBMS
by
DavidAnderson
data-structure-interview-questions
0
votes
Q: What is a queue data structure? What are the applications of queue?
asked
Aug 9, 2023
in
DBMS
by
DavidAnderson
data-structure-interview-questions
0
votes
Q: What is a linked list data structure? What are the applications for the Linked list?
asked
Aug 9, 2023
in
DBMS
by
DavidAnderson
data-structure-interview-questions
0
votes
Q: What is array data structure? What are the applications of arrays?
asked
Aug 9, 2023
in
DBMS
by
DavidAnderson
data-structure-interview-questions
0
votes
Q: What is a stack data structure? What are the applications of stack?
asked
Aug 9, 2023
in
DBMS
by
DavidAnderson
data-structure-interview-questions
0
votes
Q: What is hashmap in data structure?
asked
Aug 9, 2023
in
DBMS
by
DavidAnderson
data-structure-interview-questions
0
votes
Q: How to implement a queue using stack?
asked
Aug 9, 2023
in
DBMS
by
DavidAnderson
data-structure-interview-questions
0
votes
Q: Can you explain the difference between file structure and storage structure?
asked
Aug 9, 2023
in
DBMS
by
DavidAnderson
data-structure-interview-questions
0
votes
Q: What different types of Data Structures?
asked
Aug 9, 2023
in
DBMS
by
DavidAnderson
data-structure-interview-questions
...