----------------------------------------------------------------------------
Mean:
给定一个数列,求这个数列字典序的下一个排列.
analyse:
next_permutation函数的运用.
Time complexity: O(N)
view code
LeetCode - 31. Next Permutation
原文:http://www.cnblogs.com/crazyacking/p/5203108.html