Computer Science, asked by bhargavchandu, 2 months ago

For arr = [6, 4, 1, 7, 10], the output should be
continuousElementsArray(arr) = 2.

In this example, the minimum number of operations needed to make all the elements of the array continuous is 2. You could replace 1 with 5 and 10 with 8 so that array will become arr = [6, 4, 5, 7, 8] which has continuous elelements.

Answers

Answered by aayushupadhyay46
0

Answer:

I will tell you answer but now Mark me as Brainlist

Similar questions