DEQUE implementation Using Arrays
Deque is a double Ended queue, where you can insert and delete from both front and rear end. Deque is of two types: 1) INPUT restricted Deque - in it you can enter the element from only one end either from front or rear. But can delete from both ends. 2) OUTPUT restricted Deque - In it you can delete elements from only one end either from front or rear. But can insert from both ends. A Deque follows properties of both stack and queue. It follows STACK (LIFO) in such a way that we can restrict insertion and deletion from only one end, like Stack. It follows QUEUE (FIFO) Property in such a way that we can restrict insertion from rear end and deletion from front end, and we can set any end as rear or front because elements can be deleted or inserted from both the end. CODE: #include<conio.h> #include<stdlib.h> #include<stdio.h> void enqueue_front(int d[], int *f, int *r, int size) { int data; if((*f==0 && *r==size-1) ||(*...