comment on implementations there is rd common way of implementing deques and that is as an array of pointers to fixed sized pages of the elements usually a power of even element the advantage of this scheme is that if new elements are inserted at the front or end of the deque pages containing elements in the middle of the deque need not be disturbed nearly all the c vendor implement in this fashion note also the c deque cannot be implemented using an array there is a requirement that references to elements in the middle of a deque remain valid if only the only thing done to the deque is add new elements at either end an array implementation would fail when the array needs to be reallocated