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

Commitfd927a2

Browse files
Merge pull request#1 from shalvinpshaji/shalvinpshaji-patch-1
Indentation error in if statement
2 parents96c84ba +b6aac80 commitfd927a2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎python/347-Top-k-frequent-elements.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ def topKFrequent(self, nums: List[int], k: int) -> List[int]:
1212
foriinrange(len(freq)-1,0,-1):
1313
forninfreq[i]:
1414
res.append(n)
15-
iflen(res)==k:
16-
returnres
15+
iflen(res)==k:
16+
returnres
1717

1818
# O(n)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp