0
19kviews
Write an Algorithm for implementing queue using array.
2 Answers
written 2.7 years ago by |
Queue using Arrays : -
Algorithm : -
Step 1: IF REAR = MAX - 1
Write OVERFLOW
Go to step
[END OF IF]
Step 2: IF FRONT = -1 and REAR = -1
SET FRONT = REAR = 0
ELSE
SET REAR = REAR + 1
[END OF IF] …
written 2.7 years ago by |