原文:[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