one test case is failing why?
code : https://ide.codingblocks.com/s/147051
Sum it up question
Hello @Chitra_Singla,
Your code will fail for the cases when there two recursion paths leads to the same set of numbers due to the duplicate numbers in the input set of elements.
Example:
7
10 1 2 7 6 1 5
8
Expected Output:
1 1 6
1 2 5
1 7
2 6
Your Output:
1 1 6
1 2 5
1 7
1 2 5
1 7
2 6
Hope, this would help.
Give a like if you are satisfied.
yes , i know that
but how can i remove that