Re: [閒聊] 每日LeetCode

作者: Rushia (みけねこ的鼻屎)   2023-04-27 00:08:32
258. Add Digits
給你一個數字num,把他的每個位數的數字不斷相加直到最後只剩一位數並返回。
Example:
Input: num = 38
Output: 2
Explanation: The process is
38

Links booklink

Contact Us: admin [ a t ] ucptt.com