摘要: Given a non-negative integer num, repeatedly add all its digits until the result has only one digit. For example: Given num = 38, the process is like: 阅读全文
posted @ 2017-09-06 07:24 白常福 阅读(105) 评论(0) 推荐(0) 编辑
摘要: Calculate the sum of two integers a and b, but you are not allowed to use the operator + and -. Example:Given a = 1 and b = 2, return 3. 分析:不通过四则运算符号完 阅读全文
posted @ 2017-09-06 07:02 白常福 阅读(115) 评论(0) 推荐(0) 编辑