Fortunatelly we are wikipedia gifted :-) Read the first paragraph and "Change of base": https://en.wikipedia.org/wiki/Logarithm

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...

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?

Thanks!

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?

1

10

n - 1

So, how would you calculate it for numbers in the double digit range?

Fortunatelly we are wikipedia gifted :-) Read the first paragraph and "Change of base":

https://en.wikipedia.org/wiki/Logarithm

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 loopregarding how iterations of jump symbols are counted.It should be made more explicit in the instructions:

`[`

always counts as an iteration (whether or not it causes a jump)`]`

only counts as an iteration if it causes a jumpSorry 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

I have a Python solution if interested

Beautiful! Can someone explain what is happening for someone not mathematically gifted?

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

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

Thanks!

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?So, how would you calculate it for numbers in the double digit range?

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

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

## Loading more items...