img
Question:
Published on: 23 January, 2022

What operations can be performed on Queues?

Answer:

The below operations can be performed on a queue −

enqueue() − adds an item to rear of the queue

dequeue() − removes the item from front of the queue

peek() − gives value of front item without removing it

isempty() − checks if stack is empty

isfull() − checks if stack is full

Random questions