Digit sum successor


#1

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?


#2

got it)

all tests passed now


#3

but you didn’t share any resolution


#4

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.