Form biggest number

cannot figure out the error in the code

@jatinupadhyay786, share your code so i can check

https://ide.codingblocks.com/s/247514 here is my code

your comparator function is wrong , comparator function always returns boolean value also since you are sorting array of integers than you should pass integers in your comparator function instead of string
also print from 0 to n-1

corrected code :- https://ide.codingblocks.com/s/247523

In case of any doubt feel free to ask :slight_smile:
mark your doubt as RESOLVED if you got the answer

@O17LPOLA020023 your code is fine but all the test cases are failing. We have to add an endl after printing answer for one test case.

@Shivanshu_1, yes, i already relied this to him in private chat and sent the corrected code

1 Like

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.