LeetCode:31. 下一个排列

class Solution {
public:
    void nextPermutation(vector<int>& nums) {
        next_permutation(nums.begin(),nums.end());
    }
};

你可能感兴趣的:(#,LeetCode)