Sum It Up Getting wrong for one test case
Provide the link to your code
You need to print in lexicographical order.
e.g. for
4
1 2 3 2
5
Output :
1 2 2
2 3
2 3
Not
1 2 2
2 3
3 2
Provide the link to your code
You need to print in lexicographical order.
e.g. for
4
1 2 3 2
5
Output :
1 2 2
2 3
2 3
Not
1 2 2
2 3
3 2