2014年5月3日

[LeetCode] “全排列”问题系列(一) - 用交换元素法生成全排列及其应用,例题: Permutations I 和 II, N-Queens I 和 II,数独问题

摘要: 一、开篇Permutation,排列问题。这篇博文以几道LeetCode的题目和引用剑指offer上的一道例题入手,小谈一下这种类型题目的解法。二、上手最典型的permutation题目是这样的:Given a collection of numbers, return all possible p... 阅读全文

posted @ 2014-05-03 22:56 Felix Fang 阅读(6999) 评论(1) 推荐(0) 编辑

导航