There was an error while loading. Please reload this page.
List[]
ValuesView[]
1 parent e0d98c6 commit 98fb04dCopy full SHA for 98fb04d
1 file changed
2-python/ch06/5-1.py
@@ -9,4 +9,4 @@ def groupAnagrams(self, strs: List[str]) -> List[List[str]]:
9
for word in strs:
10
# 정렬하여 딕셔너리에 추가
11
anagrams[''.join(sorted(word))].append(word)
12
- return anagrams.values()
+ return list(anagrams.values())
0 commit comments