Complete the code to remove the first element from the deque.
let mut deque = VecDeque::new(); deque.push_back(1); deque.push_back(2); let removed = deque.[1]();
The pop_front() method removes and returns the first element from the deque.
Complete the code to add an element to the front of the deque.
let mut deque = VecDeque::new(); deque.push_back(10); deque.[1](5);
The push_front() method adds an element to the front of the deque.
Fix the error in the code to correctly remove the last element from the deque.
let mut deque = VecDeque::new(); deque.push_back(3); deque.push_back(4); let last = deque.[1]();
The pop_back() method removes and returns the last element from the deque.
Fill both blanks to add an element to the back and then remove the front element.
let mut deque = VecDeque::new(); deque.[1](7); let front = deque.[2]();
First, push_back() adds an element to the back. Then, pop_front() removes the front element.
Fill all three blanks to add elements to both ends and then remove the last element.
let mut deque = VecDeque::new(); deque.[1](1); deque.[2](2); let last = deque.[3]();
First, push_front() adds 1 to the front, push_back() adds 2 to the back, then pop_back() removes the last element.
