even though my sample input is giving right output but my testcases are not passing
It is giving me wrong answer
Take input in the for of strings. Then sort it with a custom comaprator
The custom compare function must be something like this:
bool mycompare(string a,string b)
{
string ab=a+b;
string ba=b+a;
return ab>ba;
}
Consider a case:
1
2
98 9
Expected O/p:
998