49. 字母異位詞分組

Python遞歸實現全排列  思路:將字符串按字母順序排列,之後相同的放到同一個list下面。 class Solution(object): def groupAnagrams(self, strs): """ :type strs: List[str] :rtype: List[List[str]] """
相關文章
相關標籤/搜索