Your task is to rearrange an array, nums, containing positive integers to form the next lexicographically greater
For example, given the array
If the array is already in its highest possible order (sorted in descending order), such as
Your task is to rearrange an array, nums, containing positive integers to form the next lexicographically greater
For example, given the array
If the array is already in its highest possible order (sorted in descending order), such as