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?
Show answer
Official answer: A