My approach is : I am using bubble sort type technique , but while comparing , i am comparing first digit of number and if same then number itself .
Question - form biggest number
hi @1706157 you can use the inbuilt sort function easily. If you want comparison in a certain way just use a custom comparator.
but this should also work fine nah ! i am unable to debug it , can you help with it ?
hi @1706157 this method is way too complicated. This problem was made to help you get familiar with the custom sort function.
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.