From 84fc2c9a0ca5d25da825c7c6074d932099b71a7d Mon Sep 17 00:00:00 2001 From: Rahul Gupta <59743796+rahul22nrp@users.noreply.github.com> Date: Tue, 25 May 2021 12:29:15 +0530 Subject: [PATCH] Create Next Permutation --- Next Permutation | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 Next Permutation diff --git a/Next Permutation b/Next Permutation new file mode 100644 index 0000000..e61b2e9 --- /dev/null +++ b/Next Permutation @@ -0,0 +1,10 @@ + void nextPermutation(vector& nums) { + + + if(next_permutation(nums.begin(), nums.end())) + { + for(int i=0;i