Complete the code to add the number 5 to the vector.
let mut numbers = vec![1, 2, 3]; numbers.[1](5);
The push method adds an element to the end of the vector.
Complete the code to add the number 10 at the start of the vector.
let mut numbers = vec![2, 3, 4]; numbers.[1](0, 10);
The insert method adds an element at a specific index in the vector.
Fix the error in the code to add 7 to the vector.
let mut nums = vec![1, 2, 3]; nums.[1](7);
The push method correctly adds a single element to the vector.
Fill both blanks to add 20 at index 1 and then add 30 at the end.
let mut vals = vec![10, 15]; vals.[1](1, 20); vals.[2](30);
insert adds an element at a specific index, and push adds at the end.
Fill all three blanks to add 100 at index 0, then add 200 and 300 at the end.
let mut data = vec![400]; data.[1](0, 100); data.[2](200); data.[3](300);
insert adds at a specific index, and push adds elements at the end. append is for adding another vector, not single elements.
