Please tell me What's Wrong


I first found the digits of each number then I wanna store that in b array and then will find the last digit of a which is very difficult. Please tell me What to do now? And I think it will be very difficult method. Is there any other method for this.

Yes,it would become difficult. I am giving you a hint to approach this problem. Think for the case: 56 , 294. Here 56294>29456. First take input in form of strings. Here 56 is first string and 294 is second string. make your comparator function which concatenate 56 and 294 , 294 and 56 and return the greater.

Now, try to solve it.

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.