halfrost / S2

S2 geometry library in Go | experiment version
Apache License 2.0
21 stars 5 forks source link

0060. Permutation Sequence | LeetCode Cookbook #355

Open halfrost opened 3 years ago

halfrost commented 3 years ago

https://books.halfrost.com/leetcode/ChapterFour/0001~0099/0060.Permutation-Sequence/

suntong commented 2 years ago

这道题也能用排列组合问题统一DP解法

参见
https://github.com/suntong/lang/blob/master/lang/Go/src/ds/Recursion/LC-0G-PermutationK.go

所有问题用一个统一的 Dynamic Programming 解法
更加简洁清晰,易懂易记。

如果有帮到,烦请为我的repo点星🙏🙏。