258. Add Digits

Given a non-negative integer num, repeatedly add all its digits until the result has only one digit.git For example:web Given num = 38, the process is like: 3 + 8 = 11, 1 + 1 = 2. Since 2 has only one
相關文章
相關標籤/搜索