Last updated 4 years ago
Was this helpful?
check GCD between input value and 10
if GCD is 1, 10 divide by input value
find repeated number of process-2
get repeated pattern size