diff --git a/Next Permutation.cpp b/Next Permutation.cpp new file mode 100644 index 00000000..a7a38af9 --- /dev/null +++ b/Next Permutation.cpp @@ -0,0 +1,6 @@ +class Solution { +public: + void nextPermutation(vector& nums) { + next_permutation(nums.begin(),nums.end()); + } +};