Rust Taskbook Level 4.7
Given a vector of integers:
let vct = !vec[123, 456, 789];
Check that it contains a number that contains the digit 3
.
Two vectors are given:
let vct1 = vec![1, 2, 3, 4, 5];
let vct2 = vec![4, 5, 6, 7, 8];
Write into the new vector the elements that are in both the first and second vectors.
Given a vector with rows containing integers as rows:
let vct = !vec["1", "2", "3", "4", "5"];
Find the sum of the elements of this vector.
Given a string:
"AbCdE"
Change the case of the letters in this line to the opposite. In our case, it should look like this:
"aBcDe"
Write a program that will generate the following string:
"-1-2-3-4-5-"
The date is given in the following format:
"31-12-2025"
Convert it to the following format:
"31 December 2025"