摘要:
Problem 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 阅读全文
摘要:
problem solution 难点在于判断是+1还是 1? 原则是尽量让最先几次中除法尽量多,尽量快速的变小,怎么判断??? 递归解法 discsss https://discuss.leetcode.com/topic/59350/python o log n time o 1 space w 阅读全文