随笔分类 -  算法题

摘要:最近做的题记录下。 258. Add Digits Given a non-negative integer num, repeatedly add all its digits until the result has only one digit. For example: Given num 阅读全文
posted @ 2016-11-06 11:38 _hao 阅读(182) 评论(0) 推荐(0)
摘要:下面是今天写的几道题: 292. Nim Game You are playing the following Nim Game with your friend: There is a heap of stones on the table, each time one of you take t 阅读全文
posted @ 2016-08-27 21:38 _hao 阅读(381) 评论(0) 推荐(0)