Getting wrong answer … however could not able to find the problem in the code… the link to my code https://ide.codingblocks.com/s/152245
Sum It Up Wrong Answer
Your code isn’t producing output in lexicographical order.
Try for the test case :
15
57 79 16 3 83 70 78 14 5 8 36 51 47 93 72
86
Thanks… got the problem