1. A double-ended queue is a list that allows the addition and removal of items from either end. One end is arbitrarily called the front and the other the rear, but the two ends behave identically. Specify, design, and implement a class for a double-ended queue. Include operations to check if it is empty and to return the number of items in the list. For each end, include operations for adding and deleting items. Implement the doubleended queue as a doubly linked list. Call your class Deque (pronounced “deck”).
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here