Https://ide.codingblocks.com/s/480264

In this problem i have first given preference to the first digit of the number then to the value of number and then to store them in an array but it is showing tle i dont know why?

hello @architsuryavanshi
in the else part u are not updating any pointer .

btw i dont this this logic will work . u cant decide ordering just by looking at first digit

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.