00:01
Hello student here the c+ + statements to delete the element 15 from the given list.
00:07
So list is given to us which consists of the element 223, 15, 5 and 9.
00:12
So 15 is present in the list and we have to delete this element from the given list.
00:17
So first we will find the position.
00:19
Here is a 15 in this list.
00:24
So find the position here.
00:26
Position will be saved in the variable pos.
00:30
So int pos .find.
00:33
So here i will apply the find function and element will be given as argument.
00:42
So here 15 will be given as a argument.
00:45
Now if the element is found remove it.
00:47
If there is an element then remove it.
00:50
So if position is not equal to minus 1 because if element will not be there it will return minus 1.
00:56
But if position is not equal to minus 1 then from my list it will remove the pos.
01:04
Pos means the 15 element is present at this location that will be removed from the list.
01:12
First line create a list of 223, 15, 5 and 9.
01:16
The second line find the position of the element with the value 15 and the third remove the element at the specified position if it is found.
01:24
So here is the function to interchange the first two elements in the right partition of a list.
01:31
So now we have to interchange the element in the right partition of a list.
01:36
So here move the fence to the beginning of the right partition...