Perform all operations

Report a typo

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?

Select one option from the list
___

Create a free account to access the full topic