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