Fortunatelly we are wikipedia gifted :-) Read the first paragraph and "Change of base":
At the end logarithm to the base of 100% - evap_per_day (in %) of thershold (in %) gives you the number of days.
Like some of the other commenters, I was also thrown for a loop regarding how iterations of jump symbols are counted.
It should be made more explicit in the instructions:
Sorry for the late reply. Did you end up figuring this out?
I haven't gone over your code in-depth, but my first impression is that there's a faster way to write paliCheck...
This comment is hidden because it contains spoiler information about the solution
Sure, post it and I'll add.
I have a Python solution if interested
Beautiful! Can someone explain what is happening for someone not mathematically gifted?
Got it. Thank you!
Instead of creating a string, think about what math you can do to get the position. Try small ranges first, and you'll get the idea.
For digits 1 to 10, you can just return n - 1, since those are all single digits displaced by one, right?
n - 1
So, how would you calculate it for numbers in the double digit range?