Form Biggest Number

anybody can provide me counter test case for which my code fail.
i am getting wrong answer on submition.

Counter test case:
8
1 34 3 98 9 76 45 4

your code produces
989764543431

the desired answer
998764543431

1 Like

thanks @chhavibansal

my resolved code still fail for some test case.
can you test my code with counter test case.

could u explain me your approach because i see a lot of hangling of string in the cmp function

i can give u a 2 line code for the same
but i`ll entertain your thought process first

@chhavibansal Now you can see code is well documented.