摘要:
(1)Add Digits 解题思路: 基于同余的数学属性。 数字的根(即题目所要求返回的最终结果)与该数字除以9时的余数相同(并且该余数将始终为单个数字)。 take 438 as an example [Step 1]: [Step 2]: [So we can see]: 代码如下: 1 pu 阅读全文
posted @ 2016-12-19 10:33
struggleforit
阅读(143)
评论(0)
推荐(0)