leetcode/include/s0031_next_permutation.hpp

15 lines
210 B
C++
Raw Permalink Normal View History

2022-11-21 13:15:56 +00:00
#ifndef S0031_NEXT_PERMUTATION_HPP
#define S0031_NEXT_PERMUTATION_HPP
2022-11-21 06:45:25 +00:00
#include <vector>
2022-11-21 07:24:08 +00:00
#include <algorithm>
2022-11-21 06:45:25 +00:00
using namespace std;
2022-11-30 10:20:36 +00:00
class S0031 {
2022-11-21 06:45:25 +00:00
public:
void nextPermutation(vector<int>& nums);
};
#endif