Answer:
Following are the algorithm to this question:
y = 0 // initialize variable y that assigns the value 0
p = 1 // initialize value 1 in the variable p which also known as starting position
init num = 1//define variable num that assign value 1
for j = 1 to n: //defining loop
y = m[j] - m[p]
if (y > 10) //defining if block
num++; //increment num variable
p=i; //holding loop value in p variable
y= 0//assign value 0 in y variable
Explanation:
Following are the runtime analysis of the above-given algorithm:
The above-provided algorithm is greedy, but if it doesn't exceed the scope, it operates by greedily choosing its next object. Therefore the algorithm selects the fewest number of pens.
Running time:
This algorithm merely iterates once over all the points. The run-time is therefore O(n).
Answer:
probably like more than 20
People do have reasons why they want to work for a particular company. It may be due to what they company stands for, what they make or about your dream.
I can therefore say that I want to work for Rev because they are revolutionizing the industry and I want to be part of the change process.
<h3>How do you answer why do you want to work?</h3>
Note that when looking for a job, job experience do matter. When ask the reason for looking for this job.
One can answer that they have the experience or the needed expertise and skills required for this job as they want to be aligned with what the company stands for.
Learn more about work from
brainly.com/question/25573309