Ad
  • Custom User Avatar

    This comment is hidden because it contains spoiler information about the solution

  • Custom User Avatar

    It's true, thanks for replying!

  • Custom User Avatar

    99/10 results in 9, not 9.9. Integer division.

  • Custom User Avatar

    I got confused, for example with the entry n = 99.
    I know that in the first step of the recursion the result is 81, but when It comes to the next step, the conditional gives you that you have to square the BASE (1010) and this is multiplied with the function with the entry (99/10)
    and back to the function again, 9.9 is minor than BASE, so I return 9.9
    9.9 and this is multiplied with (10*10) and this is summed with 81 (the first step) and the result is 9882, which I don't understand why is not correct. Please can you explain how it works with this specific example??

  • Custom User Avatar

    This is the most clever solution I've found here!!
    I like it a lot, thanks for sharing