Login
Remember
Register
Ask a Question
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
...