Skip to content

Commit 98fb04d

Browse files
committed
onlybooks#16 Change return type to List[] from ValuesView[].
1 parent e0d98c6 commit 98fb04d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

2-python/ch06/5-1.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ def groupAnagrams(self, strs: List[str]) -> List[List[str]]:
99
for word in strs:
1010
# 정렬하여 딕셔너리에 추가
1111
anagrams[''.join(sorted(word))].append(word)
12-
return anagrams.values()
12+
return list(anagrams.values())

0 commit comments

Comments
 (0)