GATE Assistant

Past questions › Computer Science and Information Technology › GATE 2026 set2

GATE 2026 set2 · CS · MCQ · 2 marks · Algorithms › Searching and Sorting

GATE 2026 set2 Computer Science and Information Technology question: Consider an array A of integers of size n. The indices of A run from 1 to n. An…

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.

such that ,

Which one of the following gives the worst case time complexity of the fastest algorithm that can be designed for the problem?

  1. (A)

  2. (B)

  3. (C)

  4. (D)

Show answer

Official answer: A

Practise this question with exam-style marking

Discussion

No discussion yet.

Join the discussion