After the following statements execute, what are the contents of the deque?
DequeInterfacemyDeque = new LinkedDeque ();myDeque.addToFront("Jim");myDeque.addToFront("Jess");myDeque.addToBack("Jill");myDeque.addToBack("Jane");String name = myDeque.removeFront();myDeque.addToBack(name);myDeque.addToBack(myDeque.getFront());myDeque.addToFront(myDeque.removeBack());myDeque.addToFront(myDeque.getBack());
We need at least 10 more requests to produce the solution.
0 / 10 have requested this problem solution
The more requests, the faster the answer.