cannot figure out the error in the code
Form biggest number
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 
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.
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.