i have done accordingly correctplz check it
Why is it wrong
hello @raohemad
you need to define custom comparator to solve this problem.
default comparator will fail.
for example -> for input 2 21
default comparator will order them as 212 but correct order is 221.
so define ur own comparator for comparision
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.
ok i will give feedback the doubt got resolved