My code passes one test case and fails all the rest. I am not able to figure out which all testcases will this code fail
Consider a case:
99888
Expected Output:
90111
Your o/p:
0111
Also in the question it is given “the decimal representation of the final number shouldn’t start with a zero.”
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.