Form Biggest Number

working completely fine on eclipse but not passing any test case upon submission

Hi Shrishti
You are going right in logic but instead of using the default comparison, write a comparison function myCompare() and use it to sort numbers.
Try impleting this you will get your Answer right If you still face any issue Please let me know.

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.

https://ide.codingblocks.com/s/600892 did as u suggested …still not able to pass any test case

Hi Shrishti you just doing a small mistake while printing the result i have corrected that in above link please try now.

Thanks it worked…but i couldnt figure out the impact of using coded compare function instead of built-in string compare function??

Shrishti A simple solution that comes to our mind is to sort all numbers in descending order, but simply sorting doesn’t work. For example, 548 is greater than 60, but in output 60 comes before 548. As a second example, 98 is greater than 9, but 9 comes before 98 in output. So thats why we build a compare function instead of inbuild.