subject
Mathematics, 11.07.2019 23:20 coolconnor1234p0sv4p

Use the blocks on the right and place them in order in a list on the left to describe an algorithm that takes as input a list of n integers and produces as output the largest difference obtained by subtracting an integer in the list from the one following it.
if m procedure difference(a1, a2, an: integers)
for i=2 to n
max = a1-a2
max = a2-a1
m = a(i-1) - ai
for i=2 to n-1
m = ai a(i+1)
if m> max then max = m

ansver
Answers: 3

Another question on Mathematics

question
Mathematics, 21.06.2019 12:40
The graph below could be the graph of which exponential function?
Answers: 2
question
Mathematics, 21.06.2019 15:00
Brady has a 20 year fixed rate mortgage for $215,500 with monthly payments of 1,305.89.the annual interest rate is 4%. what is the total cost of the principal and interest for this loan rounded to the nearest dollar
Answers: 3
question
Mathematics, 21.06.2019 19:00
What is the order of these fractions from least to greatest 2/3 7/10 5/8 65/100
Answers: 1
question
Mathematics, 21.06.2019 21:00
Write the equation in logarithmic form m^x=n
Answers: 1
You know the right answer?
Use the blocks on the right and place them in order in a list on the left to describe an algorithm t...
Questions
question
Mathematics, 19.11.2020 19:20
question
Social Studies, 19.11.2020 19:20
question
Mathematics, 19.11.2020 19:20
question
Biology, 19.11.2020 19:20
question
Mathematics, 19.11.2020 19:20
Questions on the website: 13722361