Plzz,atleast reply this my second doubt of today, and u guys havent answered even my first one, plzz help me with my algo i developed it on my own , it satifies the given case and other cases also , but it doesnt satify the test case
@nmoudgil_be19 hey it is not working as your logic is not correct,you have to simply use sort function with your comparator and also take input in form of string,check this code you will get it,also do dry run it pls:
hey, they told me to take integers as in input
how can i take input as a string
also my logic is totally correct acc to your given input ,plzz check and try to understand it
@nmoudgil_be19 hey I am taking input as string because it is easy to append the strings ,also you have to siomply sort the numbers , your logic is not correct I have checked and sorting is to be done such that all cases are to be considered so that number fornm is bigger number ,please dry run the code which I have send.
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.