|
Queue->Array implementation->Insert operation |
||
| It's going to be a
static implementation of queues and good for limited elements to be
handled, as you know array size has to be pre-defined and can't be
changed dynamically. Here, every time you insert a new element in the
queue you'll check for the queue 'overflow' condition as we are using a
static array to implement the queue.
Here, I'll take rear as -1 and front as 0 when the Queue is empty. Algorithm:- C implementation:- Related Operations: |
||
| Index || Doubts / Clarifications || Related Topics || Web Links | ||