Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 98fb04d

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

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎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)

AltStyle によって変換されたページ (->オリジナル) /