摘要: leetcode -Ugly NumberWrite a program to check whether a given number is an ugly number.Ugly numbers are positive numbers whose prime factors only incl... 阅读全文
posted @ 2015-10-05 14:13 cnblogshnj 阅读(100) 评论(0) 推荐(0) 编辑
摘要: leetcode -Sort ColorsGiven an array withnobjects colored red, white or blue, sort them so that objects of the same color are adjacent, with the colors... 阅读全文
posted @ 2015-10-05 12:04 cnblogshnj 阅读(99) 评论(0) 推荐(0) 编辑