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

Commit6315c29

Browse files
authored
Added spacing
1 parent03dec27 commit6315c29

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎python/0791-custom-sort-string.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ class Solution:
22
defcustomSortString(self,order:str,s:str)->str:
33
char_count_of_s= {}
44
foriins:
5-
char_count_of_s[i]=char_count_of_s.get(i,0)+1
5+
char_count_of_s[i]=char_count_of_s.get(i,0)+1
66

77
satisfied_string=""
88
forcharinorder:
@@ -11,6 +11,6 @@ def customSortString(self, order: str, s: str) -> str:
1111
delchar_count_of_s[char]
1212

1313
forkey,valinchar_count_of_s.items():
14-
satisfied_string+=key*val
14+
satisfied_string+=key*val
1515

1616
returnsatisfied_string

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp