Skip to content

Beta · Data may be lost.Your data may be reset or lost.

GateBrew
← GATE CSE 2026 Set 2
Questions

Q28

MCQ2 marks, −0.67Algorithms

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.

Solutions and discussion are hidden while you attempt this question. They open once you check or show the answer.