Form Biggest Number

plz check my code … i am getting wrong answers in test cases

Hi @Pramod123,
in ur current code, when input is {9,91,1},output should be 9911 but ur code gives output as 9191.
instead of doing dis in O(n^2), u can do it in O(nlogn) using comparators.
refer to dis code.


hope dis helps

sir i had already solved this by considering string input …but i want to solve this problem by considering as an integer input without typecasting to a string

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.