This code is showing wrong answer ? What is the mistake?
Form Biggest Number
Try running your code for the following input
1
2
82 8
Correct O/p: 882
your Optput: 828
You need to check which case yields bigger string
You can sort the array of numbers, by writing your own comparison function.
Hint! If you want to compare X and Y, then think about comparing XY and YZ
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.