1 2 5 , 1 7 , 1 6 1 , 2 6 this is my output for the test case , can you please tell it is right or wrong .
My print is coming different
1 1 6
1 2 5
1 7
2 6
this is the correct output for the custom test case
7
10 1 2 7 6 1 5
8
Print all unique combinations of the numbers satisfying the above constraints in a separate line in lexicographic manner.
follow this