Form Biggest Number From Array Problem

Can u please correct my code…
however my code is giving the same output as in given in the prob…

code link…

regards

Consider a case:
1
2
98 9

Expected O/p:
998

Your O/p:
989

An efficient approach is take input in the form of string.
Then you should sort the string
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;
}

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.