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

Commit684c4f7

Browse files
Update 1657.py
1 parent8644004 commit684c4f7

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

‎1501-2000/1657.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,7 @@ def closeStrings(self, word1: str, word2: str) -> bool:
99
d2[c]+=1
1010
returnsorted(d1.values())==sorted(d2.values())
1111

12+
classSolution:
13+
defcloseStrings(self,word1:str,word2:str)->bool:
14+
returnset(word1)==set(word2)andCounter(Counter(word1).values())==Counter(Counter(word2).values())
15+

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp