C++ Coding Exercise – Add Digit – Digit Root September 9, 2015 c / c++, leetcode online judge, math 1 Comment Given a non-negative integer number, repeatedly add all its digits until the result has only one digit. For example: Given num = 38, the process is like: 3 + … [Continue Reading...]