原文:[LeetCode] Add Digits 加數字

Given a non negative integernum, repeatedly add all its digits until the result has only one digit. Example: Follow up:Could you do it without any loop recursion in O runtime Hint: A naive implementa ...

2015-08-18 23:36 6 13996 推薦指數:

查看詳情

 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM