GDSC-IGDTUW-Autumn-of-Code-2022 / ip-questions-2023

INTERVIEW PRACTICE
0 stars 5 forks source link

Next Permutation #16

Open tanisha12j opened 1 year ago

tanisha12j commented 1 year ago

Problem statement- Given an array Arr[] of integers, rearrange the numbers of the given array into the lexicographically next greater permutation of numbers. Input format: Arr[] = {1,3,2} Output: Arr[] = {2,1,3}

Explanation: All permutations of {1,2,3} are {{1,2,3} , {1,3,2}, {2,13} , {2,3,1} , {3,1,2} , {3,2,1}}. So, the next permutation just after {1,3,2} is {2,1,3}.

tanisha12j commented 1 year ago

Hey @Parul-Mann can you assign this issue to me ?

Shreyg-27 commented 1 year ago

Hi @Parul-Mann, Can this issue be assigned to me?

BhavyaDevani commented 1 year ago

@Parul-Mann pls assign this issue to me