Sir I am able to implement and pass all the test cases when I start recursion from rightmost end of the number, but if I implement sameway from lefthand side of the number, it is showing wrong answer for 2 cases.
Interesting encodings
Hello @pangatt4 if you are able to solve the question then you should move on to another question.
because any test only expect you to solve the question they will nit ask you to solve in a particular way.
if you have any other doubt you can ask here;
Happy learning!!
Okay, actually I started with the earlier way and it didn’t work, however when I call function from the end it worked. So like if such thing might happen in online round, then …
@pangatt4 i think this you will get to know with practice only.
i mean if you are sure that you are doing right then your approach will work despite of any errors.
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.