My code shows no error and the sample test cases are passing but on submitting I get messages of wrong output.
Link:https://ide.codingblocks.com/s/363104
Test cases not passing
hello @Divye-Aggarwal-3050062625037589
the default comparator will not work here.
for example->
1
2
2 21
correct output is 221 but urs will give 212.
use custom comparator for sorting with following logic.
bool cmp(string a ,string b){
return a+b > b+a;
}
1 Like
Thankyou. It resolved my problem. 
