GATEverse
← GATE CSE 2026 Set 2

Q28

MCQ2 marks, −0.67

Consider an array AA of integers of size nn. The indices of AA run from 11 to nn. An algorithm is to be designed to check whether AA satisfies the condition given below. ∀i,j∈{1,…,n−1}\forall i, j \in\{1, \ldots, n-1\} such that i>j,(A[i+1]−A[i])>(A[j+1]−A[j])i>j,(A[i+1]-A[i])>(A[j+1]-A[j]) Which one of the following gives the worst case time complexity of the fastest algorithm that can be designed for the problem?

Sign in to save attempts.

Loading…