Next Permutation
Next Permutation rearranges an array in place to its next lexicographically greater ordering, or to the lowest ordering when no greater permutation exists, using constant extra memory.
We'll cover the following...
We'll cover the following...
Statement
Your task is to rearrange an array, nums, containing positive integers to form the next lexicographically greater
For example, given the array