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

Commit8ecb50d

Browse files
Update 242-Valid-Anagrams.py
1 parent6e77153 commit8ecb50d

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

‎python/242-Valid-Anagrams.py‎

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,4 @@ def isAnagram(self, s: str, t: str) -> bool:
88
foriinrange(len(s)):
99
countS[s[i]]=1+countS.get(s[i],0)
1010
countT[t[i]]=1+countT.get(t[i],0)
11-
forcincountS:
12-
ifcountS[c]!=countT.get(c,0):
13-
returnFalse
14-
returnTrue
11+
returncountS==countT

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp