摘要: Given a non-negative integernum, repeatedly add all its digits until the result has only one digit.For example:Givennum = 38, the process is like:3 + ... 阅读全文
posted @ 2015-12-26 21:05 finalboss1987 阅读(109) 评论(0) 推荐(0) 编辑
摘要: 题目: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 turns to remove 1 to 3 s... 阅读全文
posted @ 2015-12-26 21:04 finalboss1987 阅读(113) 评论(0) 推荐(0) 编辑