can i have some hint to solve this prob, as im not gettin any approach, thank you
Form Biggest Number
@akb.tech17 hey anshul this problem is quite easy all you need to do sort the array and the array is of string.
with the help of custom compare function which is
int compare(string a, string b){
string first = a.append(b);
string second = b.append(a);
return first.compare(second) >0 ? 1:0;
}
1 Like
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.