Open utterances-bot opened 2 years ago
Implement next permutation, which rearranges numbers into the lexicographically next greater permutation of numbers.
https://blog.slarea.com//algorithm/leet-code-medium/next-permutation/
I found that solution very popular and helpful: https://www.youtube.com/watch?v=tC-aM1rG1HA&ab_channel=EricProgramming
[Swift] Next Permutation - SwiftMan Blog
Implement next permutation, which rearranges numbers into the lexicographically next greater permutation of numbers.
https://blog.slarea.com//algorithm/leet-code-medium/next-permutation/