DSA-Questions icon indicating copy to clipboard operation
DSA-Questions copied to clipboard

Next Permutation

Open Ayushi2905 opened this issue 3 years ago • 3 comments

Implement the next permutation, which rearranges the list of numbers into Lexicographically next greater permutation of list of numbers. If such arrangement is not possible, it must be rearranged to the lowest possible order i.e. sorted in an ascending order. You are given an list of numbers arr[ ] of size N.

Input: N = 6 arr = {1, 2, 3, 6, 5, 4} Output: {1, 2, 4, 3, 5, 6}

Ayushi2905 avatar Oct 02 '21 04:10 Ayushi2905

Hey can I work on this issue?

nirmalya8 avatar Oct 02 '21 14:10 nirmalya8

Can you assign me this issue?

up4154 avatar Oct 20 '21 14:10 up4154

this repo is not considered to hacktoberfest but you can contribute as community work, it will help many students

avinash201199 avatar Oct 20 '21 15:10 avinash201199