Question: Use a circular array or a doubly linked list to implement a deque.
Use a circular array or a doubly linked list to implement a deque.
Step by Step Solution
3.38 Rating (151 Votes )
There are 3 Steps involved in it
class Dequestructure static final int MAX 100 int array int front int rear int size public Dequeint size array new intMAX front 1 rear 0 thissize size ... View full answer
Get step-by-step solutions from verified subject matter experts
