Not getting all test cases passed even when Sample test case is passed

I am not getting correct answereven though sample test case is passed. Please find any error if possible.
link of my code :

@sanjit_15
hello sanjit,
please share correct code link

Here it is :


This is I guess the same link.

getting this->
image

i think u havent saved ur code

I am not able to save any code and all my previous saved codes are gone. Please help. Its showing blank.

Try to open it now. It will open.

@sanjit_15
sanjit ur compare function is not correct.

for exmaple if two string a = 2 and b= 21 are there then it will order them as 212 but correct ordering should be 221 .

to rectify it.
return a+b > b+a in ur compare function

1 Like

still wrong answer in all test cases.

i did it by using
return a.append(b) > b.append(a),
DONE,
Thank you!

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.

The link you provided for rating the experience can not be opened. Its giving error.

yeah that page is not working.i will be resolved soon