xqian / cpp_projects

cplusplus projects for myself
2 stars 2 forks source link

get_nextPermutation to handle duplicate #31

Open waveletus opened 10 years ago

waveletus commented 10 years ago

http://oj.leetcode.com/problems/permutation-sequence/

xqian commented 10 years ago

I am proposing not only work for a get_netPermutation, also work on an algorithm that also get a Nth Permutation in O(1)