摘要: Given a set of distinct integers,S, return all possible subsets.Note:Elements in a subset must be in non-descending order.The solution set must not co... 阅读全文
posted @ 2015-04-06 15:02 微微程序媛 阅读(103) 评论(0) 推荐(0) 编辑
摘要: 1.Given a collection of numbers, return all possible permutations.For example,[1,2,3]have the following permutations:[1,2,3],[1,3,2],[2,1,3],[2,3,1],[... 阅读全文
posted @ 2015-04-06 14:11 微微程序媛 阅读(215) 评论(0) 推荐(0) 编辑
摘要: Then-queens puzzle is the problem of placingnqueens on ann×nchessboard such that no two queens attack each other.Given an integern, return all distinc... 阅读全文
posted @ 2015-04-06 12:27 微微程序媛 阅读(152) 评论(0) 推荐(0) 编辑