larscheng / algo

0 stars 0 forks source link

【Check 86】2024-05-30 -31. 下一个排列 #194

Open larscheng opened 1 month ago

larscheng commented 1 month ago

31. 下一个排列

larscheng commented 1 month ago

思路



### 复杂度
- 时间复杂度:O(n)
- 空间复杂度:O(1)