Form biggest number

sir please once look at my code i’ve used string to resolve this problem and all my testcases are correct but i m not getting it right on submission

Hi @nikhilmeena
Your complete code is perfect. You just need to modify your compare function.

Make compare function as following :

  1. first append s1 at the end of s2
  2. then append s2 at the end of s1
  3. now see which of the two formed numbers is greater

Your corrected code is :