Open halfrost opened 3 years ago
https://books.halfrost.com/leetcode/ChapterFour/0001~0099/0060.Permutation-Sequence/
这道题也能用排列组合问题统一DP解法
参见 https://github.com/suntong/lang/blob/master/lang/Go/src/ds/Recursion/LC-0G-PermutationK.go
所有问题用一个统一的 Dynamic Programming 解法 更加简洁清晰,易懂易记。
如果有帮到,烦请为我的repo点星🙏🙏。
https://books.halfrost.com/leetcode/ChapterFour/0001~0099/0060.Permutation-Sequence/