Hi, I tried to solve this question by doing something similar to the reverse a number problem. It did clear 4/5 test cases but it doesn’t work numbers like 5000 etc. I also think that this is not the optimum solution So could you please provide me with the optimum solution and reasoning behind it
regards
Optimum approach to solve chewbacca and number problem
i still have to look at the solution will surely get back to you soon
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.