leetcode总结:permutations, permutations II, next permutation, permutation sequence
摘要:
Next Permutation:Implement next permutation, which rearranges numbers into the lexicographically next greater permutation of numbers.If such arrangement is not possible, it must rearrange it as the lowest possible order (ie, sorted in ascending order).The replacement must be in-place, do not allocat 阅读全文
posted @ 2014-02-17 10:25 waruzhi 阅读(463) 评论(0) 推荐(0) 编辑