算法

43 阅读1分钟

算法

  1. 各位相加:

int addDigits(int num){ return (num - 1) % 9 + 1; }