Chewbacca and Number

I don’t understand this problem. Can you suggest some approach to solve this problem?

hello @krishav49 you havenot understood the question ?

@krishav49 youhave to start from the starting of thenumber andif your digit is greater then 5 then you have to subtract that digit from 9 replace it.
Here for your reference i am attaching the code:


Happy Learning!!

1 Like

As you explained now, this problem became easier than other problem​:blush::blush:

hey @krishav49 happy to help you.
if you feel that your doubt is cleared you can mark this doubt as resolved.
Happy Learning !!

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.