60. 第k個排列

class Solution: def getPermutation(self, n, k): """ :type n: int :type k: int :rtype: str """ ans = '' fact = [1] * n num = [str(i) for i in range(1, 10)] f
相關文章
相關標籤/搜索