摘要: Problem:Given a set of candidate numbers (C) and a target number (T), find all unique combinations inCwhere the candidate numbers sums toT.Thesamerepe... 阅读全文
posted @ 2015-09-07 13:14 airforce 阅读(332) 评论(0) 推荐(0) 编辑
摘要: Problem:The count-and-say sequence is the sequence of integers beginning as follows:1, 11, 21, 1211, 111221, ...1is read off as"one 1"or11.11is read o... 阅读全文
posted @ 2015-09-07 12:20 airforce 阅读(354) 评论(0) 推荐(0) 编辑
摘要: Problem:Given an array of non-negative integers, you are initially positioned at the first index of the array.Each element in the array represents you... 阅读全文
posted @ 2015-09-07 06:25 airforce 阅读(361) 评论(0) 推荐(0) 编辑
摘要: Problem:Implement next permutation, which rearranges numbers into the lexicographically next greater permutation of numbers.If such arrangement is not... 阅读全文
posted @ 2015-09-07 04:38 airforce 阅读(174) 评论(0) 推荐(0) 编辑