31.下一个排列

31. 下一个排列

题目

整数数组的一个 排列 就是将其所有成员以序列或线性顺序排列。

例如,arr = [1,2,3] ,以下这些都可以视作

文章来源:

Author:Mosuzi
link:https://mosuzi.com/docs/tech/leetcode/31-next-permutation/