摘要: 题目: Given a string, determine if a permutation of the string could form a palindrome. For example,"code" -> False, "aab" -> True, "carerac" -> True. H 阅读全文
posted @ 2015-12-05 13:13 YRB 阅读(1914) 评论(0) 推荐(0) 编辑
摘要: 题目: There are a row of n houses, each house can be painted with one of the k colors. The cost of painting each house with a certain color is different 阅读全文
posted @ 2015-12-05 12:44 YRB 阅读(1461) 评论(0) 推荐(0) 编辑
摘要: 题目: Write a program to find the n-th ugly number. Ugly numbers are positive numbers whose prime factors only include 2, 3, 5. For example, 1, 2, 3, 4, 阅读全文
posted @ 2015-12-05 03:23 YRB 阅读(835) 评论(0) 推荐(0) 编辑