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
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
0
Explanation:
the program find minimum elements in array which has given value example of input
Similar questions
Hindi,
6 months ago
History,
6 months ago
Math,
6 months ago
Computer Science,
11 months ago
Computer Science,
1 year ago
Chemistry,
1 year ago