摘要: lc 263 Ugly Number [lc 263 Ugly Number][1] Write a program to check whether a given number is an ugly number. Ugly numbers are positive numbers whose 阅读全文
posted @ 2016-04-19 13:53 三石宝宝 阅读(176) 评论(0) 推荐(1) 编辑
摘要: lc 258 Add Digits [lc 258 Add Digits][1] Given a non negative integer num, repeatedly add all its digits until the result has only one digit. For exam 阅读全文
posted @ 2016-04-19 10:57 三石宝宝 阅读(162) 评论(0) 推荐(1) 编辑
摘要: lc 292 Nim Game [292 Nim Game][1] You are playing the following Nim Game with your friend: There is a heap of stones on the table, each time one of yo 阅读全文
posted @ 2016-04-19 10:20 三石宝宝 阅读(188) 评论(0) 推荐(1) 编辑