code is giving correct output but all testcases fail.
Here’s the code-
Form biggest number
your compare function is not correct
Correct One
string s1=to_string(a);
string s2=to_string(b);
return (s1+s2) > (s2+s1);
code is giving correct output but all testcases fail.
Here’s the code-
your compare function is not correct
Correct One
string s1=to_string(a);
string s2=to_string(b);
return (s1+s2) > (s2+s1);