Question: 2. Given an array A[] of n numbers and another number x, the task is to check whether or not there exist two elements in
![Given an array A[] of n numbers and another number x, the](https://dsd5zvtm8ll6.cloudfront.net/questions/2024/08/66b21853a2dc9_1722947666064.jpg)
2.
![A[] whose sum is exactly x.](https://dsd5zvtm8ll6.cloudfront.net/questions/2024/08/66b2187fa118a_1722947710672.jpg)
Given an array A[] of n numbers and another number x, the task is to check whether or not there exist two elements in A[] whose sum is exactly x.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
