Write a Java program to find all unique combinations from a collection of candidate numbers. The sum of the numbers will be equal to a given target number
Expected Output:
Input number of elements of the array:
3
Input number format: 2 3 4 5:
Enter elements:
6 7 8
Enter target sum:
21
A solution set is:
{ 6 7 8 }
Sample Output:
Input number of elements of the array: 3 Input number format: 2 3 4 5: Enter elements: 6 7 8 Enter target sum: 21 A solution set is: { 6 7 8 }need an explanation for this answer? contact us directly to get an explanation for this answer