GATE CSE 2026 Session 2 Q38: Checking that consecutive differences strictly increase
- Algorithms
- 2 marks
- MCQ
- −2/3 if wrong
Question
Consider an array of integers of size . The indices of run from 1 to . An algorithm is to be designed to check whether satisfies the condition given below.
Which one of the following gives the worst case time complexity of the fastest algorithm that can be designed for the problem?
Try it: multiple choice: exactly one correct option
Show answer and explanation
Answer: A (official GATE 2026 final answer key)
Concept used: The condition says the difference sequence is strictly increasing, which is checked by adjacent comparisons.
First step: Let ; strict increase of only needs for every (transitivity), and every element must be read.
Full step-by-step solution
Detailed working, common mistakes and linked mock tests will be available with a free GATEiit account. Log-in is coming soon.
Share this question
Source: official GATE 2026 Session 2 CS question paper and final answer key, organised by IIT Guwahati. Question paper · Answer key
More Algorithms PYQs
- 2026 Session 1 · Q17Solve nested recurrences T1 = 4T1(n/2) + T2, T2 = 5T2(n/4) + log n
- 2026 Session 1 · Q41Shortest paths with at most k edges: two statements
- 2026 Session 1 · Q47Condition forcing a vertex into every minimum vertex cover
- 2026 Session 1 · Q49Cycle and cut properties of MSTs with distinct weights
- 2026 Session 1 · Q50Impossible DFS discovery/finish orderings for a DAG edge
- 2026 Session 1 · Q55Properties of 2-colorable (bipartite) graphs