+1 (218) 451-4151
glass
pen
clip
papers
heaphones

1. Give a simple adapter that implements the stack ADT while using an instance of a deque for…

1. Give a simple adapter that implements the stack ADT while using an instance of a deque for…

1. Give a simple adapter that implements the stack ADT while using an instance of a deque for storage.2. Give a simple adapter that implements the queue ADT while using an instance of a deque for storage.3. What values are returned during the following sequence of deque ADT operations, on an initially empty deque? addFirst(3), addLast(8), addLast(9), addFirst(1), last( ), isEmpty( ), addFirst(2), removeLast( ), addLast(7), first( ), last( ), addLast(4), size( ), removeFirst( ), removeFirst( ).