From d76283a8f94e201e0a0e8b1166252afbcb48fddc Mon Sep 17 00:00:00 2001 From: Aakash Singh <92391710+Aakash231217@users.noreply.github.com> Date: Tue, 4 Oct 2022 22:38:48 +0530 Subject: [PATCH] Create NextPermutation.cpp --- Next Permutation.cpp | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 Next Permutation.cpp 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()); + } +};