Implication : After the reversion, numsi <= ... <= numsn-1. The next permutation of nums only change numsi-1: by swapping position of numsi-1 and first numsj greater than it behind it. Reference Solution
Keep Reading →
About this website
This website is used to record everything worth to share in my study and research.