Digit sum successor


Thanks for nice puzzle

I am passing all tests inside the test but i can’t pass “Need more length” test on validation step.

Have no ideas what i have made wrong (

Is anybody here who passed it? Any ideas?


got it)

all tests passed now


but you didn’t share any resolution


The puzzle stub provided a long datatype to get the input value. This could be a trick (intended or unintended) to mislead people thinking it in the wrong way - trying to solve it by using long or BigInt.

You can modify it to read the input as a string and process it as string or char array - it might be more straight forward in algorithm and also has the benefit to receive and process inputs of nearly unlimited length.