摘要: 258. Add Digits class Solution { public int addDigits(int num) { if(num == 0) return 0; if(num % 9 == 0){ return 9; }else{ return num % 9; } } } 43. M 阅读全文
posted @ 2019-12-02 15:51 阿飞哦 阅读(129) 评论(0) 推荐(0) 编辑