Which elements will deq contain after executing the following code?
The order is important.
Deque<Integer> deq = new LinkedList<>();
for (int i = 10; i >= 0; i--) {
deq.offerLast(i);
}
deq.pollFirst();
deq.pollFirst();
deq.pollLast();Which elements will deq contain after executing the following code?
The order is important.
Deque<Integer> deq = new LinkedList<>();
for (int i = 10; i >= 0; i--) {
deq.offerLast(i);
}
deq.pollFirst();
deq.pollFirst();
deq.pollLast();Create a free account to access the full topic