摘要:
节省时间复杂度: sorted + 跳过重复目标 +记忆搜索 例子:字符串的不同排列 import copy class Solution: def stringPermutation2(self, str): str = ''.join(sorted(str)) #部分版本的PY好像str只能以这 阅读全文
posted @ 2018-10-24 11:22
Phinza
阅读(371)
评论(0)
推荐(0)
浙公网安备 33010602011771号