Movatterモバイル変換


[0]ホーム

URL:


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

Commit7e0c9a7

Browse files
authored
Update anagram-groups.md
1 parent85eaa80 commit7e0c9a7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

‎articles/anagram-groups.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ class Solution:
99
for sin strs:
1010
sortedS=''.join(sorted(s))
1111
res[sortedS].append(s)
12-
return res.values()
12+
returnlist(res.values())
1313
```
1414

1515
```java
@@ -149,7 +149,7 @@ class Solution:
149149
for c in s:
150150
count[ord(c) - ord('a')] += 1
151151
res[tuple(count)].append(s)
152-
return res.values()
152+
returnlist(res.values())
153153
```
154154
155155
```java
@@ -284,4 +284,4 @@ class Solution {
284284
* Time complexity: $O(m * n)$
285285
* Space complexity: $O(m)$
286286

287-
> Where $m$ is the number of stringsand $n$ is the length of the longest string.
287+
> Where $m$ is the number of stringsand $n$ is the length of the longest string.

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp