You are viewing a single comment's thread. Return to all comments →
16 + 16 = 32 => superdigit(32) = 5 88 * 2 = 176 => 176 mod 9 = 5
it's a arithmetic trick to get the result
Seems like cookies are disabled on this browser, please enable them to open this website
I agree to HackerRank's Terms of Service and Privacy Policy.
Recursive Digit Sum
You are viewing a single comment's thread. Return to all comments →
16 + 16 = 32 => superdigit(32) = 5 88 * 2 = 176 => 176 mod 9 = 5
it's a arithmetic trick to get the result