Suppose you have a deque. Here is a sequence of operations:
insert 5 to the front
insert 6 to the front
insert 7 to the back
insert 8 to the back
remove an element from the front
insert 5 to the back
Which elements does the deque contain?
Suppose you have a deque. Here is a sequence of operations:
insert 5 to the front
insert 6 to the front
insert 7 to the back
insert 8 to the back
remove an element from the front
insert 5 to the back
Which elements does the deque contain?
Create a free account to access the full topic