educative.io

Changing Iterative Code to Recursive

Under the Iteration to Recursion, Changing Iterative code to Recursive there is a bug in count number of digits in a number in the recursive solution. Returning 1 when num <= 1 only will return the correct number 8 if the first digit is a 1. The if conditional should be if (num / 10 == 0). Minor issue, but bugs like these are annoying for a course I paid $60/month for, doesn’t give me much confidence in your product.

No tags for the course I’m taking either, why.

Hi Jonah,

Thank you so much for contacting us and posting the query here. However, I’m not able to find the lesson the query specifies. Can you please share the lesson link with me? This can help me a lot in resolving the query.

Thank you for pointing out the tags issue. I will look into this and fix the issue.

Thank you so much for your kindness.