what should i improve in this one
2 test cases failed in chewbacca problem
hello @mahfoozhaque91
u should never produce leading zeros.
i.e if 9 is the left most digit then leave it as it is. dont make it 0
i have done that in my code like for a number 9999787 it gives 212 as output
thats the issue.
u are not allowed to change the left most digit if it is 9.
for above input output should be
9000212
ca you look what else can be the mistake
can* .
…
check now->
ok got it . I did not understand the problem properly that if the leading number if 9 should not be replaced. Thanks
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.