摘要: 这应该是我自己做出来的第一道题,所以刚开始的时候把我激动坏了。Write a program to check whether a given number is an ugly number.Ugly numbers are positive numbers whose prime factors... 阅读全文
posted @ 2015-10-16 15:36 0giant 阅读(243) 评论(0) 推荐(0) 编辑
摘要: 刚注册了leetcode,推荐的第一题就是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 ta... 阅读全文
posted @ 2015-10-16 14:05 0giant 阅读(312) 评论(0) 推荐(0) 编辑