摘要: 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 阅读全文
posted @ 2016-05-22 20:56 liu_ty10 阅读(103) 评论(0) 推荐(0) 编辑
摘要: Problem: 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 阅读全文
posted @ 2016-05-22 01:01 liu_ty10 阅读(117) 评论(0) 推荐(0) 编辑