Programming
February 13, 2024Functions
February 13, 2024Programming
Question 3 |
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.
Theory Explanation. |
Correct Answer: A
Subscribe
Login
0 Comments