What is the mean of consecutive elements here


#1

What is the mean of consecutive elements here? Doesn’t it mean all the elements should match: a[i+1] -a[i] = 1?


#2

No, here it means that if the elements of the array are sorted then the numbers would form a consecutive series.


#3

Can you please explain the question?