How would you create a program that only returns integers in the array that can add up to a particular number?
Sigiloso
1. Sort the array. 2. Make a variable to point to index of element equal to the particular number or its immediate less. Let's name it end. 3. Start adding beginning element and end element and comparing it to particular number, if it's equal than print and increment beginning, if it's less than just increment beginning otherwise decrement end.