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 17:50
Graph y ≥ -x^2 - 1. click on the graph until the correct graph appears.
Answers: 1
question
Mathematics, 21.06.2019 20:00
The scatterplot below shows the number of hours that students read weekly and the number of hours that they spend on chores weekly. which statement about the scatterplot is true?
Answers: 2
question
Mathematics, 22.06.2019 00:20
20 ! need ! which exponential function is represented by the table? f(x) = 0.2(0.5x)f(x) = 0.5(5x)f(x) = 0.5(0.2x)f(x) = 0.2(0.2x)
Answers: 1
question
Mathematics, 22.06.2019 01:30
Which statement about 6x2 + 7x – 10 is true?
Answers: 3
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
English, 23.04.2021 03:30
question
English, 23.04.2021 03:30
question
Mathematics, 23.04.2021 03:30
question
Chemistry, 23.04.2021 03:30
Questions on the website: 13722360