Form Biggest Number

I am getting the same output as the coding block output (i download the test cases…but when i submit the test cases fails… i tried giving output in int ans tried to give it in string format also…but it is failing everytime. This is the problem here https://online.codingblocks.com/app/player/117244/content/109112/5316/code-challenge Here is my code https://ide.codingblocks.com/s/288740

hello @dras_227

a) your comparator is not correct.
for example->
for input 21 2 ,ur comparator will order them as 212 but correct order is 221.

correct comparator

return s1+s2 > s2+s1.

b) no need to to covert string back to int.