Computer Science, asked by Grace808, 11 months ago

Write a program to find minimum elements in array which has sum equals to given value.Input :array of integersrequired sumoutput :elements from array which makes sum equals to given valueexample:input array : [10, 0, -1, 20, 25, 30]required sum: 45output: [20, 25]required sum: 29output: [-1, 30]

Answers

Answered by Anonymous
7

Explanation:

Write a program to find minimum elements in array which has sum equals to given value.Input :array of integersrequired sumoutput :elements from array which makes sum equals to given valueexample:input array : [10, 0, -1, 20, 25, 30]required sum: 45output: [20, 25]required

Answered by Anonymous
0

Explanation:

the program find minimum elements in array which has given value example of input

Similar questions