...
Programming
February 13, 2024
Programming
February 13, 2024
Programming
February 13, 2024
Programming
February 13, 2024

Programming

Question 8

An array a contains n integers in non-decreasing order, A[1] ≤ A[2] ≤ … ≤ A[n]. Describe, using Pascal like pseudo code, a linear time algorithm to find i, j, such that A[i] + A[j] = a given integer M, if such i, j exist.

A
Theory Explanation.
Correct Answer: A

Leave a Reply

Your email address will not be published. Required fields are marked *