FORM BIGGEST NUMBER PROBLEM ! , my logic is not working correctly!

@mandeepchohan96 simply comparing will fail in cases like “90 9” as you have already seen. So in the compare function, you need to see if “909” is bigger or “990” since comparing “90” and “9” is not working. You can do so by return a+b > b+a {+ can be used to concatenate 2 strings}
Note: please remove the space from the final output else it will give wrong answer.

As instructed by you i had modify my code…but still its not passing the testcases …

i had done changes to code.but still its not passing the testcases…

@mandeepchohan96 since there can be multiple test cases you need to print the answer of each case in a new line.

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.