Let D[k]=A[k+1]−A[k] for all k∈{1,2,…,n−1}.
The given condition requires that for all i>j:
D[i]>D[j] This is equivalent to stating that the sequence of adjacent differences D is strictly increasing:
D[1]<D[2]<⋯<D[n−1] To check this property:
It is both necessary and sufficient to verify that D[k]<D[k+1] for every k∈{1,…,n−2}, which is equivalent to (A[k+1]−A[k])<(A[k+2]−A[k+1]).
We can perform a single linear scan over the array A from index 1 to n−2 and check the condition at each step.
This linear scan takes Θ(n) time in the worst case.
Since any algorithm must inspect Ω(n) elements of the array in the worst case to verify this condition, the optimal worst-case time complexity is Θ(n).
Therefore, (A) is the correct option.