Forum discussion on Queue and Expression conversion

Discussion

Discussion

by 201-15-3695 Tasnim Forhad Rimon -
Number of replies: 0

Ans to the ques No : 1

The operations of queue are:
Enqueue - This function defines the operation for adding an element into queue.
Dequeue - This function defines the operation for removing an element from queue.
Initialize - create an empty queue
Front - Front is used to get the front data item from a queue.
Rear - Rear is used to get the last item from a queue.

Answer for question- 02

When a queue is empty, It's front and rear are the same value or item.