Chewbacca and number problem

plz check into my problem !!

your code is fine, but you forgot to handle a corner case like what should be output for 99?
the answer is 90. try to handle first digit(if 9) carefully.

Thanks!

its not about data size, its about first digit. if first digit is 9, you should not be changing it to 0.

understood thanxx! not read the question properly

it was about the data size also 10^18

okay. can you please resolve it if satisfied. 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.